Wednesday, January 29, 2014

"BasicHttpBindingServiceMetadataExchangeEndpointAttribute" could not be found

Follow the post Creating a Custom WCF Service in SharePoint Foundation, I created and deployed a SOAP web service to a SharePoint Server 2010 site.

When I click http://SPserver/sites/site1/_vti_bin/test.svc, I got the error message below.

Configuration binding extension 'system.serviceModel/bindings/BasicHttpBindingServiceMetadataExchangeEndpointAttribute' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly.

From MSDN, we know that "BasicHttpBindingServiceMetadataExchangeEndpointAttribute, which instructs the SharePoint Foundation service factory to automatically create a metadata exchange endpoint for the service". Then why the server complains?

It turns out, we need to delete the "" section.



 
   
     
       
         
         
       
     
   
   
      MyServiceBehavior"
        name="MyService">
       
         
           
         
       
       
     
   
 


No comments:

Post a Comment