Tuesday, 26 August 2014

SPQuery returning error "One or more field types are not installed properly. Go to the list settings page to delete these field"

A recent Caml Query was returning the follow error: One or more fields are not installed properly.

The most likely cause of the problem is that the internal names are not correct in the query. However, this was not the cause. The culprit was my very extensive column naming convention which was more than 32 characters long. It seems that the name was being truncated in the query.

A quick rename of the column resolved the problem.

Tuesday, 12 August 2014

WCF: A binding instance has already been associated to listen URI http://site/_vti_bin/restservice.svc

The simple resolution to this was to change my endpoint address to a relative url.

The endpoint address was set as an empty string

<endpoint address=""
  contract="MyNamespace.IMyContract" >
<dns value="localhost" />

I changed the address to the relative path (_vti_bin/Folder/MyService.svc) to resolve the problem.