Web service partial trust problem
-
I just deployed a c# web service from my notebook to my server. Worked fine locally but puked under IIS. Error Message: "That assembly does not support partially trusted callers". What I have is a web service assembly (strong name) that references my data access layer assembly (strong name). It seems that the DAL assembly is expecting full trust and the web service is partial trust. If I comment out creating the DAL object, the web service runs fine. Anyone know what I need to do to change the trust levels either on IIS, on the web service, assembly or otherwise? I'm on 3.0/3.5 Thanks!
-
I just deployed a c# web service from my notebook to my server. Worked fine locally but puked under IIS. Error Message: "That assembly does not support partially trusted callers". What I have is a web service assembly (strong name) that references my data access layer assembly (strong name). It seems that the DAL assembly is expecting full trust and the web service is partial trust. If I comment out creating the DAL object, the web service runs fine. Anyone know what I need to do to change the trust levels either on IIS, on the web service, assembly or otherwise? I'm on 3.0/3.5 Thanks!
I just had to think it through a bit more. If anyone's interested, you just change the trust level for the web service: In the web.config -