Security Exception After Deployment Solved

12-22-2012 - .Net Development - Shannon McVay - 0 Comments

When first deploying my site to my web host, I had issues getting the home page (or any page) to show up correctly. I was getting a "Security Exception." The exception was as follows (click the image to see a full-size view of the error):

Site Error

After searching around the net, I was able to figure out that the problem was in the web.config file. The following entry needed to be added under system.web:

<trust level="Full" />

After adding this, and re-deploying the web.config file, the site was up and working as it should be!

Tags :

Leave a Comment