Seems that ToolkitScriptManager generates SecurityException in Medium Trust?
Comments: This bug has been going for years! If you Google the problem, many people have been tearing their hair out on this. A Security Exception is thrown in all Medium Trust (and above I assume) environments. It astounds me that this still has not been resovled. Message: Timestamp: 10/30/2012 12:42:42 PM Message: HandlingInstanceID: 46f98797-b464-4b6c-a357-ba6a0d9199c4 An exception of type 'System.IO.FileLoadException' occurred and was caught. --------------------------------------------------------------------------- 10/30/2012 07:42:42 Type : System.IO.FileLoadException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : Could not load file or assembly 'AjaxControlToolkit, Version=4.1.60623.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Source : mscorlib Help link : FileName : AjaxControlToolkit, Version=4.1.60623.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e FusionLog : Access failed Data : System.Collections.ListDictionaryInternal TargetSite : Void GetType(System.Reflection.RuntimeAssembly, System.String, Boolean, Boolean, System.Runtime.CompilerServices.ObjectHandleOnStack) Stack Trace : at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Web.UI.NamespaceTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean throwOnError) at System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) at System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) at System.Web.UI.MainTagNameToTypeMapper.GetControlType2(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) at System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) at System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) Additional Info: MachineName : 439363-WEB TimeStamp : 10/30/2012 12:42:42 PM FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 AppDomainName : /LM/W3SVC/828008/ROOT/Admin-32-129960745289987621 ThreadIdentity : sa WindowsIdentity : DFW\hesvic Category: Critical Priority: 0 EventId: 100 Severity: Critical Title:Enterprise Library Exception Handling Machine: 439363-WEB App Domain: /LM/W3SVC/828008/ROOT/Admin-32-129960745289987621 ProcessId: Unable to read intrinsic property. Error message: System.Security.Permissions.SecurityPermission Process Name: Unable to read intrinsic property. Error message: System.Security.Permissions.SecurityPermission Thread Name: Win32 ThreadId:Unable to read intrinsic property. Error message: Permission for UnmanagedCode is not available. Extended Properties: --> MachineName: 439363-WEB --> TimeStamp: 10/30/2012 12:42:42 PM --> FullName: Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 --> AppDomainName: /LM/W3SVC/828008/ROOT/Admin-32-129960745289987621 --> WindowsIdentity: DFW\hesvic
Comments: This bug has been going for years! If you Google the problem, many people have been tearing their hair out on this. A Security Exception is thrown in all Medium Trust (and above I assume) environments. It astounds me that this still has not been resovled. Message: Timestamp: 10/30/2012 12:42:42 PM Message: HandlingInstanceID: 46f98797-b464-4b6c-a357-ba6a0d9199c4 An exception of type 'System.IO.FileLoadException' occurred and was caught. --------------------------------------------------------------------------- 10/30/2012 07:42:42 Type : System.IO.FileLoadException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : Could not load file or assembly 'AjaxControlToolkit, Version=4.1.60623.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Source : mscorlib Help link : FileName : AjaxControlToolkit, Version=4.1.60623.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e FusionLog : Access failed Data : System.Collections.ListDictionaryInternal TargetSite : Void GetType(System.Reflection.RuntimeAssembly, System.String, Boolean, Boolean, System.Runtime.CompilerServices.ObjectHandleOnStack) Stack Trace : at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Web.UI.NamespaceTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean throwOnError) at System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) at System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) at System.Web.UI.MainTagNameToTypeMapper.GetControlType2(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) at System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) at System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) Additional Info: MachineName : 439363-WEB TimeStamp : 10/30/2012 12:42:42 PM FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 AppDomainName : /LM/W3SVC/828008/ROOT/Admin-32-129960745289987621 ThreadIdentity : sa WindowsIdentity : DFW\hesvic Category: Critical Priority: 0 EventId: 100 Severity: Critical Title:Enterprise Library Exception Handling Machine: 439363-WEB App Domain: /LM/W3SVC/828008/ROOT/Admin-32-129960745289987621 ProcessId: Unable to read intrinsic property. Error message: System.Security.Permissions.SecurityPermission Process Name: Unable to read intrinsic property. Error message: System.Security.Permissions.SecurityPermission Thread Name: Win32 ThreadId:Unable to read intrinsic property. Error message: Permission for UnmanagedCode is not available. Extended Properties: --> MachineName: 439363-WEB --> TimeStamp: 10/30/2012 12:42:42 PM --> FullName: Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 --> AppDomainName: /LM/W3SVC/828008/ROOT/Admin-32-129960745289987621 --> WindowsIdentity: DFW\hesvic