I am updating the project from VS2008 to VS2010B2 For some reason, after updating the project, the code generated by the link is missing, and I can’t re-create the code by reconfiguring the service link because I get the following error:
The link service configuration could not be updated because of the following problem: an error occurred creating the configuration section handler for system.serviceModel / behavior: The webHttp extension element could not be added to this element. Confirm this extension is registered in the system.serviceModel / extension / behaviorExtensions collection.
The machine has a configuration for webHttp:
<system.serviceModel>
<extensions>
<behaviorExtensions>
...
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
...
</behaviorExtensions>
...
source
share