3
我正在將項目從VS2008升級到VS2010B2 由於某些原因,項目升級後,引用生成的代碼缺失,我無法重新創建通過重新配置服務引用,因爲我發現了以下錯誤代碼:VS 2010 Beta 2 - 無法更新服務參考
The configuration for the service reference could not be updated due to the following issue: An error occurred creating the configuration section handler for system.serviceModel/behaviors: Extension element 'webHttp' cannot be added to this element. Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions.
這臺機器有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>
...
你升級到4.0還是使用3.5?服務模式在4.0中改變。 – Yuan 2011-03-31 06:38:11
嘗試使用發佈的VS 2010版本重現問題。 – 2011-06-12 00:40:19