I'm not sure if my post belongs here since I am not familiar with ClickOnce, but here goes anyway:
I have developed an application that works correctly on my development computer. However when I go to deploy the application at a client site the application fails to load due to some error with the .NET assembly (DD_Mgd.dll). All of the files that the .NET assembly depend on, along with the application are in the same directory. The assembly is not in the GAC.I am not able to register the assembly, using regasm, due to what appears to be the same error. Here is the error message:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'DD_Mgd, Version=2.7.1.24041, Culture=neutral, PublicKeyToken=954bd47eaa10a352
' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)
File name: 'DD_Mgd, Version=2.7.1.24041, Culture=neutral, PublicKeyToken=954bd47eaa10a352' ---> System.Security.Policy.PolicyException: Required permissions cannot be acquired.
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission)
at OdWriteExMgd.Program.Main(String[] args)
Has anyone else run into this problem? It looks like some type of policy restriction. Does anyone know which policy? I don't have access to set policies at client's site.
Regards,
Al