Select to view content in your preferred language

Addins directory problem/relocation

2821
1
01-11-2011 10:57 PM
DavidMurton
Deactivated User
Hello everyone.

I am trying to develop an Add-in for ArcGIS Explorer desktop but have a problem. The Appdata directory on our network is stored on a server not the local drive. Consequently all Add-ins fails to initialize due to this error - "System.Security.SecurityException: That assembly does not allow partially trusted callers." - and I have been unable to get beyond this.

I have tried all sorts of measures like trying to adjust the trust level of the Intranet zone, incorporating the assembly into the GAC but all have failed to resolve the problem. If I run the system as the local admin (where the Appdata directory is local) all is fine. The problem is that this is a scenario which cannot be followed when we roll out the add-in.

My question is then, is there any way relocate the directory where the addins are stored in order to ensure they are local. I have searched all through the config files, registry, etc to try to find anything pertaining to the Add-ins directory but have drawn a blank. If anyone knows of a solution or has any advice I would be very grateful.

Many thanks!
0 Kudos
1 Reply
DavidMurton
Deactivated User
My mistake!

Actually I have now discovered that the assembly was not being properly loaded into the GAC. To do this one must run "gacutil /i [assembly dll]" after giving the assembly a strong name. This does resolve the matter and will be incorporated into the rollout script.

This is maybe something which could be added to the troubleshooting part of the SDK docs, since I'm surely not the only one working in such an environment 😉

Thanks again.
0 Kudos