Format Error - Assembly Does Not Allow Partially Trusted Callers

<< Click to Display Table of Contents >>

Navigation:  EDP > Troubleshooting >

Format Error - Assembly Does Not Allow Partially Trusted Callers

When trying to load a format file in EDP the following Error appears:

 

"Unable to read format file (gives directory location)

That assembly does not allow partially trusted callers"

 

The error message below is a .NET error message that occurs when a partially trusted assembly (i.e. *.dll) tries to use a fully trusted assembly that does not specifically allow partially trusted callers. Some format files (DNREC, UK_EQEDD for example) use a third-party tool called GpsTools.dll to do coordinate conversions. GpsTools.dll is installed with EDP (in the local hard disk). By default, .NET assumes that everything on the local hard disk has full trust, whereas everything on a network drive has partial trust. So, when running the format dll from a network drive, it is running with partial trust and it tries to access GpsTools.dll, which is running with full trust and the error occurs.

 

"That assembly does not allow partially trusted callers"

 

Cause: Format files are stored on a network drive.

 

Workarounds:

 

1.Zip the format file package (including format .dll) and open from EDP as a .zip, or

2.Save format files on a local hard drive.

 

Alternative workaround: Use the .NET Configuration tool to explicitly grant full trust permissions to the format dll located on the network drive.

 

Microsoft provides instructions for this here: http://msdn.microsoft.com/en-us/library/zdc263t0(VS.80).aspx