If your building is a WCF service, you can set this attribute in the class:
[AspNetCompatibilityRequirements (RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
What should give you access. If you use asmx, I donโt remember the head.
source share