SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a webservice that gets deployed to the inetpub folder of my site. As long as my assembly deployment target is GlobalAssemblyCache everything is working fine and I can see the WSDL. But if I change the assembly deployment target to WebApplication, I can't see the WSDL anymore and I get a 400 Bad Request error. Is this just not possible or is it just a configuration error?

share|improve this question

Items in the GAC run with full trust whereas items in the web app /bin/ folder run with the trust level defined in the controlling web.config, which is usually minimal. What is probably happening is that your web service is attempting to access a resource beyond what is allowed which is why it fails in /bin/ but works in the GAC

share|improve this answer
My webservice executes some stored procedures. Is this not allowed from the bin? I've also changed the trustlevel from minimal to medium. – Marlou Mar 21 '12 at 13:16
Even Medium might not allow access to whatever resources your web service may be using. Try placing the assembly in _app_bin instead. If that doesn't work, you will need to either create a Custom Access Policy or put the DLL in the GAC – Dave Wise Mar 21 '12 at 13:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.