Geeks With Blogs

News Microsoft MVP

Catch me on FaceBook too!



la familia
Title Of Blog
Had an issue calling WCF service today. The following exception was being thrown when service was called:

WebHost failed to process a request.

Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/35320229

Exception: System.ServiceModel.ServiceActivationException: The service '/InteliChartVendorCommunication/VendorService.svc' cannot be activated due to an exception during compilation.  The exception message is: Security settings for this service require 'Basic' Authentication but it is not enabled for the IIS application that hosts this service..

Ensured Basic authentication was indeed enabled in IIS before getting stumped on what actual issue could be. Turns out it was CustomErrors setting. Value was set to "off" vs "Off". Would have expected different exception from .NET (i.e. web.config parse exception) but it works now either way.

Posted on Thursday, September 13, 2012 3:12 PM | Back to top


Comments on this post: Security settings for this service require 'Basic' Authentication

# re: Security settings for this service require 'Basic' Authentication
Requesting Gravatar...
Thanks for this, but I want, Is it possible to setup a WCF service with SSL and Basic Authentication in IIS using only BasicHttpBinding-binding? (I can’t use the wsHttpBinding-binding) Best Commodity Advisory Company in India
Left by Surya Mansad on Jun 29, 2015 6:27 AM

# re: Security settings for this service require 'Basic' Authentication
Requesting Gravatar...
There will be a few times in your life when all your instincts will tell you to do something, something that defies logic, upsets your plans, and may seem crazy to others. When that happens, you do it. Listen to your instincts and ignore everything else. Ignore logic, ignore the odds, ignore the complications, and just go for it. http://indiavisitonline.in/complete-himachal-tour-package
Left by abolhassan amouzgac on Dec 05, 2016 4:04 AM

Your comment:
 (will show your gravatar)


Copyright © Jake Rutherford | Powered by: GeeksWithBlogs.net | Join free