MVC 5 Website - Shared Hosting - Medium Trust

637 Views Asked by At

I recently hosted an asp.net MVC 5 website on shared hosting of hostgator. Its throwing me security errors. I contacted the support and they replied me that the website has to be Medium trust. They cannot offer Full trust as its shared hosting plan. I cannot opt for dedicated server as its too expensive.

My question is can't we build asp.net mvc 5 websites with medium trust. I marked trust level to Medium in web.config and its throwing few other errors. I added [assembly: AllowPartiallyTrustedCallers] to AssemblyInfo.cs. Not much of use.

How to build an asp.net MVC website with medium trust level? I am using Entity Framework.

Thanks, Fayaz

0

There are 0 best solutions below