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
SecurityExceptions 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.SecurityException
Message: Request for the permission of type
'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
StackTrace: at System.RuntimeTypeHandle.CreateInstance(RuntimeTyp e
type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached,
RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,
Boolean fillCache)
.... and so on
Thanks!
James