Avatar of drlewicki
drlewicki
Flag for United States of America asked on

Error with Trust

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

.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
Todd Gerbert

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Todd Gerbert

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
drlewicki

ASKER
The assembly lies in an unshared directory on my local machine.
Todd Gerbert

You know you can just add a comment and delete the question if you solve it yourself. ;)

I'm curious...what turned out to be the problem?
Your help has saved me hundreds of hours of internet surfing.
fblack61