Re: Trust level required for AppDomain.CurrentDomain.UnhandledExcept
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 13 Sep 2007 00:06:01 +0000 (UTC)
use these instruction to get the REAL reason:
http://www.leastprivilege.com/ViewingSecurityExceptions.aspx
permcalc is awkward and not very precise IMO
or
simply look at the docs ;)
they say
"SecurityPermission to add an event handler for this event. Associated enumeration: SecurityPermissionFlag.ControlAppDomain"
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
I was trying to reduce the trust level in a web application. I am a
newbie at playing with trust levels.
<trust level="High" originUrl="" processRequestInApplicationTrust =
"true" /> We use a non-Gac dll in it that has this code:
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(OnUhe);
I get an exception:
System.Security.SecurityException: Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Is their a good way to get rid of the exception?
Is their a way from the documentation to tell what trust level is
required?
.
- Prev by Date: Re: GenericPrincipal
- Next by Date: Re: Impersonating user
- Previous by thread: RE: Trust level required for AppDomain.CurrentDomain.UnhandledExcept
- Next by thread: Re: Session data loss during user logged session
- Index(es):
Relevant Pages
|
|