SecurityException: Request for the permission of type ‘System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0

Recently tried to host an ASP site on GoDaddy’s Windows Hosting , and on run I got the following error

“SecurityException: Request for the permission of type ‘System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0”

GoDaddy lets you run ASP pages with Trust level full , however you need to delcare this on the web. config file ( Inside system.web ) per below

<system.web>
 <trust level=”Full” />
</system.web>

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...