L
Lei Jiang
I have a winform control hosted in IE web page. When the client side is
Win2000, the page works ok. However, when I view the page from Win2003, it
shows nothing. I could find some error message from the "Temporary Internet
Files" folder :
***** IEHOST Error Log (Tuesday, 06 July 2004 14:14) *****
URL: http://10.147.130.245/dwmweb/Flag.DWM.dll
Zone: 3
Assembly Name: Flag.DWM.dll
Type Name: Flag.DWM.TabDWMControl
----- Thrown Exception -----
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.IO.FileLoadException: Failed to
grant required minimum permissions to assembly 'MagicLibrary,
Version=1.7.4.0, Culture=neutral, PublicKeyToken=null'.
File name: 'MagicLibrary, Version=1.7.4.0, Culture=neutral,
PublicKeyToken=null' ---> System.Security.Policy.PolicyException: Required
permissions can not be acquired.
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Int32& grantedIsUnrestricted, Boolean
checkExecutionPermission)
at Flag.DWM.TabDWMControl..ctor()
--- End of inner exception stack trace ---
at System.AppDomain.CreateComInstanceFrom(String assemblyFile, String
typeName, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
at Microsoft.IE.SecureFactory.CreateInstanceWithSecurity(Int32 dwFlag,
Int32 dwZone, String pURL, String uniqueIdString, String link, String
licenses)
Pages from other web site can be correctly viewed in my Win2003 machine.I
checked the MagicLibrary.dll and found it has a lot of interop code to
access User32.dll and GDI32.dll. Is that the reason? How to configure my
machine to view the page?Thanks!
Win2000, the page works ok. However, when I view the page from Win2003, it
shows nothing. I could find some error message from the "Temporary Internet
Files" folder :
***** IEHOST Error Log (Tuesday, 06 July 2004 14:14) *****
URL: http://10.147.130.245/dwmweb/Flag.DWM.dll
Zone: 3
Assembly Name: Flag.DWM.dll
Type Name: Flag.DWM.TabDWMControl
----- Thrown Exception -----
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.IO.FileLoadException: Failed to
grant required minimum permissions to assembly 'MagicLibrary,
Version=1.7.4.0, Culture=neutral, PublicKeyToken=null'.
File name: 'MagicLibrary, Version=1.7.4.0, Culture=neutral,
PublicKeyToken=null' ---> System.Security.Policy.PolicyException: Required
permissions can not be acquired.
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Int32& grantedIsUnrestricted, Boolean
checkExecutionPermission)
at Flag.DWM.TabDWMControl..ctor()
--- End of inner exception stack trace ---
at System.AppDomain.CreateComInstanceFrom(String assemblyFile, String
typeName, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
at Microsoft.IE.SecureFactory.CreateInstanceWithSecurity(Int32 dwFlag,
Int32 dwZone, String pURL, String uniqueIdString, String link, String
licenses)
Pages from other web site can be correctly viewed in my Win2003 machine.I
checked the MagicLibrary.dll and found it has a lot of interop code to
access User32.dll and GDI32.dll. Is that the reason? How to configure my
machine to view the page?Thanks!