how can I check the security setting of a loaded assembly at runtime with C# .NET 2.0 (VS 2005)? I'm loading the assembly with:
Assembly externalAssembly = Assembly.LoadFrom(path);
May be the path is local or it is a remote UNC Path (Network path).
If it is a remote network path, the user should set the CAS to "fulltrust" with caspol.exe, to run the application correctly. How can I check this at runtime, if CAS was configured right?
I've seen, .NET 4.0 provides a "IsFullyTrusted" property for this purpose.
Unfortunately I still have to use VS 2005 for my project.
Regards Tom