Find out which assembly causes a SecurityException

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • james

    Find out which assembly causes a SecurityException

    Hi everyone,

    I am trying to lock down a server to only give permissions to certain
    assemblies, based on their strong name. I missed a couple and see
    SecurityExcepti ons on startup. Would anyone mind explaining how I can
    figure out which assembly is causing the security exception so I can
    add it's strong name to have full trust?

    Below is my error from the event log.

    Event Type: Error
    Event Source: ASP.NET 2.0.50727.0
    Event Category: None
    Event ID: 1334
    Date: 5/1/2008
    Time: 2:19:45 PM
    User: N/A
    Computer: APPSERVER
    Description:
    Failed to initialize the AppDomain:/LM/W3SVC/169255866/Root

    Exception: System.Security .SecurityExcept ion

    Message: Request for the permission of type
    'System.Web.Asp NetHostingPermi ssion, System, Version=2.0.0.0 ,
    Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.

    StackTrace: at System.RuntimeT ypeHandle.Creat eInstance(Runti meType
    type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached,
    RuntimeMethodHa ndle& ctor, Boolean& bNeedSecurityCh eck)
    at System.RuntimeT ype.CreateInsta nceSlow(Boolean publicOnly,
    Boolean fillCache)

    .... and so on

    Thanks!
    James
Working...