In my application’s web.config. On, some servers if I set aspNetCompatibilityEnabled=true
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
I get “MethodAccessException”. I need to use aspNetCompatibilityEnabled. Since, i want this call to be authenticated by one of ours HttpModule. I googled every where no answer found. It seems like there is an IIS setting that can fix it. Since, It is working in some internal environments.
Have you tried to put:
above your service class declaration?