December 2009 - Posts - itaysk

December 2009 - Posts

I have installed SharePoint 2010 Beta 2, and couldn’t use Client OM nor SharePoint Designer.

spd_service_error

Well.. Checking the Application log showed me this error:

 sp2010_service_error

This makes sense, because SharePoint designer actually uses Client OM behind the scenes, which uses client.svc service.

If you read the detailed message, you will see that what’s missing there is the ‘webHttp’ extension.

So, in order to resolve the issue:

  1. Open the 14 Hive (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14)
  2. Open the folder: “ISAPI” (this is where the client.svc service is)
  3. Find the file: “web.config”, and open it for editing.
  4. Find the extensions element (inside <configuration>\<system.web>\<system.serviceModel>)
  5. add the following configuration inside the extensions element:
  6. <extensions>
    <behaviorExtensions>
    <add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </behaviorExtensions>
    <bindingElementExtensions>
    <add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </bindingElementExtensions>
    </extensions>

  7. Save the file and reset IIS.

 

Here is the error message as text for search engines:

Log Name:      Application
Source:        System.ServiceModel 3.0.0.0
Event ID:      3
Task Category: WebHost
Level:         Error
Keywords:      Classic
Description:
WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/48360500
Exception: System.ServiceModel.ServiceActivationException: The service '/_vti_bin/client.svc' cannot be activated due to an exception during compilation.  The exception message is: Invalid element in configuration. The extension name 'webHttp' is not registered in the collection at system.serviceModel/extensions/behaviorExtensions.  (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\web.config line 357). ---> System.Configuration.ConfigurationErrorsException: Invalid element in configuration. The extension name 'webHttp' is not registered in the collection at system.serviceModel/extensions/behaviorExtensions.  (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\web.config line 357) 

  Process Name: w3wp

כפי שהבטחתי, להלן הקלטות של 3 ההרצאות שהעברתי בכנס שותפים שהתקיים בנושא מה חדש למפתחים ב SharePoint 2010.

 

כלי הפיתוח החדשים ב VS2010 עבור מפתחי SP2010
DevTools
http://www.screencast.com/t/N2NlMWJlYWI

Linq 2 SharePoint
Linq_Thumb
http://www.screencast.com/t/NjBkMDk1

Client OM
ClientOM
http://www.screencast.com/t/OTFkNzdi