Hi
From you description, do you mean you have a .net application which will
use a SCRUN.DLL(a common com dll) to do some job, and on target machine you
get exception. If I have any misunderstanding, please feel free to post
here.
Also what is the exact error message? And which code line cause the
exception?
To isolate if the problem is caused by the CLR security check or underlying
win32 check, we can try to use the caspol tool to shut down the clr
security check.
caspol -s[ecurity] { on | off }
Turn security on or off
We can turn off the security check by running the code below.
caspol -s off
NOTE: this is for test purpose please enable the security check after test.
caspol -s on
For detailed information about caspol, please refer to the link below.
Code Access Security Policy Tool (Caspol.exe)
http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfcodeaccesssecuritypolicyutilitycaspolexe.asp
If this works after call(caspol -s off), we will know that the problem is
caused by clr security check.
You may try to run the application under same account and run on the local
machine, both the interop dll the managed app and the com dll will be on
the same machine.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.