I developed a website using .net framework 4.5 visual studio 2013 on local pc it is working fine but on a shared hosting on hostgator it show error. Hostgator team said your website run full trust level but they provid only medium level trust.
How I change my website from full trust to medium level trust?

Dipal BhavsarRank #4,751 · 327 reputationPosted May 11, 2017, 2:24 AM EDT
Zoe Hudson3 reputationPosted Aug 28, 2025, 4:18 AM EDT
Hi Zaheer,
This is a very old and frustrating issue that was common with older .NET Framework hosting. The short answer is that changing your website to work in "Medium Trust" is very difficult and often impossible for most applications.
My recommendation is you can find hosting provider that support Full Trust. For example you can try Asphostportal and this provider fully support Full Trust. I've been using these guys for years and so far they are very good and stable.
But if you don't want to change your provider, then you need to edit your web.config file and add this line:
If you're still seeing 500 error, then you need to ask your hosting provider to check full error message on the server to know the issue.
Prasad RaveendranRank #320 · 7.8K reputationPosted Sep 1, 2025, 10:07 PM EDT
Just wondering if there’s any possibility of upgrading the framework version to 4.8 or 4.8.1