When developing WCF web services for SharePoint you may sometimes run into the following problem.
Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.
Trust me, you will knock your head trying to solve this one. The solution is pretty simple though. In your web.config file modify your the bindings section with the following:
If you SharePoint application is using Kerberos authentication please change the mode to Windows.
This solution worked for me, hope that it will work for you.
Till next
Over the years, I’ve performed many technical roles — from hands-on engineering to enterprise architecture — and always found joy in sharing ideas through blogging. After a bit of a hiatus from blogging, I thought I’d start again and try my luck at putting thoughts out there. My hope is to spark collaboration, challenge assumptions, and maybe even help us do things a little better. So here are my ramblings for now…
Showing posts with label WCF Service. Show all posts
Showing posts with label WCF Service. Show all posts
Tuesday, October 4, 2011
Monday, July 18, 2011
WCF Service - Could not find a base address that matches schema http
Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding. Registered base address schemes are []..
This is probably the most painfull error that I have ever experienced. After trying many fixes and googling for hours.
Problem : I only got this error when the web service was deployed to a Sharepoint web application that did not use a DNS entry to access the site. (Web service deployed to the ISAPI folder)
Fix : The solution which helped me was to remove the Base Address tags from my web.config file and my service worked. See below:
When I removed the above tags I no longer had problems accessing my webservice from my SharePoint site.
This is probably the most painfull error that I have ever experienced. After trying many fixes and googling for hours.
Problem : I only got this error when the web service was deployed to a Sharepoint web application that did not use a DNS entry to access the site. (Web service deployed to the ISAPI folder)
Fix : The solution which helped me was to remove the Base Address tags from my web.config file and my service worked. See below:
When I removed the above tags I no longer had problems accessing my webservice from my SharePoint site.
Subscribe to:
Posts (Atom)