asp.net - The application attempted to perform an operation not allowed by the security policy -


i have developed asp.net website in visual studio 2008 , worked fine while using vista os workstation got upgraded windows 7 , following error:

security exception description: application attempted perform operation not allowed security policy. grant application required permission please contact system administrator or change application's trust level in configuration file.

exception details: system.security.securityexception: request permission of type 'system.web.aspnethostingpermission, system, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089' failed.

i error while running on local machine within visual studio... have googled error nothing found helps far. don't error when deployed on server, on local.

the website references .dll projects have created in same solution. error seems occur when try instaniate object contained within 1 of these .dll projects.

this setting in web.config did not help:

<trust level="full" originurl="" /> 

neither did this:

<securitypolicy>     <trustlevel  name="full" policyfile="internal" /> </securitypolicy> 

this old question, experienced exact issue , problem existed on local machine , not on remote 1 of rest of information pulled particular error, none of solutions helped i'm going put solution here.

my issue was using networked workstation , trying run solution stored on network drive. reason, local machine did not trust particular drive , not accept of attempts raise trust level of application.

once realized issue drive itself, moved entire solution on 1 , solved problem me. imagine talk network admin permissions helped correct error also, switching solution local drive fixed issue having , might work others.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -