netterdotter
netterdotter

Reputation: 131

How do I allow reflection on a shared IIS host?

In this question a user replied that he was able to override the security settings on a shared host. I'm using the same host, but haven't been able to figure out how to change web.config to allow reflection. Is it a one-liner?

I'm using MVC + Nhibernate in my project, but I can't even get an Mvc "new project" template site to work, I suppose the problem is reflection.

Upvotes: 1

Views: 208

Answers (1)

SLaks
SLaks

Reputation: 887469

Try adding the following line to your web.config:

<system.web>
    <trust Level="Full" />    
</system.web>

Note, however, that the section might be locked by machine.config.

Upvotes: 1

Related Questions