troubleshooting Question

Error with Trust

Avatar of drlewicki
drlewickiFlag for United States of America asked on
.NET ProgrammingASP.NET
3 Comments1 Solution292 ViewsLast Modified:
Here's the error I get when running my ASP.Net application:

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I tried assigning the trust level in the Web.config file to "Full", "High" and "Minimal" and that didn't work.

Thanks,

Dave

ASKER CERTIFIED SOLUTION
Todd Gerbert
Senior Engineer
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros