11-19-2012 10:51 AM
Hi all,
I'm getting the following error when trying to call a .net assembly that is located on a mapped drive. I've found the following: http://digital.ni.com/public.nsf/allkb/F326A891E72073B486256EEC0006E019 that seems to indicate how to fix this error. However, the error persists. Both the vi and the dll reside together on my mapped drive. This is a mapped drive from parallels (i.e. the files reside on my MAC partition). It's a long story on why it isn't pratical to put them on my local c drive. I would like to find a way to get them to work on this mapped drive.
Thanks!
11-20-2012 02:42 AM
This should be a system security issue. Network located code has only partial trust. Try to compile the assembly with the AllowPartiallyTrustedCallersAttribute
read this:
http://msdn.microsoft.com/en-us/library/system.security.allowpartiallytrustedcallersattribute.aspx
Hope it helps
Christian
11-20-2012 07:26 AM
Unfortunately that isn't possible in this case as the assembly is from a vendor.
11-20-2012 10:21 AM
You need to grant code trust to the network drive. The correct tool to do this is most likely microsofts caspol( http://msdn.microsoft.com/en-us/library/cb6t8dtz(v=vs.80).aspx )
Should be something like:
caspol -q -machine -addgroup 1 -url file://K:/* FullTrust -name "K map"
11-20-2012 01:14 PM
Tried that as well. Still no luck.