Created On:
Aaron Robson

Aspnet 2.0 and Shared Hosting

Shared hosting environments usually run under a Medium Trust security setting. In Aspnet 2.0 this has changed somewhat, and one of the effects is that any strong named assembly must have the [assembly:AllowPartiallyTrustedCallers] attribute. This is a problem if you're using third party code and they haven't updated it.

One workaround is to set <trust level="full" /> in the web.config file (within system.web element) - although I suspect hosts shouldn't allow this to work.