I am trying to deploy an ASP.NET MVC4 site to a HostGator shared windows host. I am running into some trouble when their technical support tells me I have to compile my application for medium security.
As far as I can tell the only way to set the trust level for an application is to set the <trust level="Medium">
either in machine.config or web.config. Am I wrong in assuming this, is there another way to compile my application for medium trust?
based on my initial assumption, and the information i found on this page I added the trust level to my web.config:
By default, Web applications run with full trust and have unrestricted permissions. To modify code access security trust levels in ASP.NET, you have to set a switch in the Machine.config file or the application-level Web.config file and configure the application as a partial-trust application. I put the trust level in my web.config and get this error message form the host:
Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using from an inherited configuration file.
However HostGator still insist that i compile for medium trust, does any one have any advice for me on this subject?