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?
Prasad RaveendranPosted Sep 2, 2025, 2:07 AM
Just wondering if there’s any possibility of upgrading the framework version to 4.8 or 4.8.1
Zoe HudsonPosted Aug 28, 2025, 8:18 AM
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.
Dipal BhavsarPosted May 11, 2017, 6:24 AM