FAQ: TFORMer SDK
Exception: Required Permissions Cannot Be Acquired
Exception: Required Permissions Cannot Be Acquired
If you run your application from a network location (UNC path) you may get the above exception when your application tries to load the native compiled TFORMer DLLs.
This is an issue with the .NET Framework's trust level settings on your local machine. The default trust level for the local machine is "Full Trust", whereas for the network share it is not.
- http://msdn.microsoft.com/en-us/library/bs2bkwxc(v=vs.80).aspx
- http://blogs.msdn.com/b/shawnfa/archive/2004/12/30/344554.aspx
Either install the TFORMer SDK on the local workstation(s) and avoid loading them from a network path - or lower the security settings on your machine(s). You can give a specific network path full trust with the Caspol command (for details see the Caspol documentation from Microsoft). The following command would give the local intranet zone full trust (not recommended):
Caspol –m –cg LocalIntranet_Zone FullTrust