Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Problems With Deploying .NET Assembly
 

Problems With Deploying .NET Assembly

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
Al Willis  Wednesday, July 29, 2009 2:01 PM
Are you sure that assembly is .Net? It doesn't look like it. I thought they all started with Microsoft. So it's probably a 3rd party component?

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Thursday, July 30, 2009 7:17 PM

We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Tuesday, August 04, 2009 12:43 PM

You can use google to search for other answers

Custom Search

More Threads

• Adding files in Setup Project only for the time of installation.
• Enabling IIS compression breaks NTD deployment
• Client system requirements
• How Can I get a list of ClickOnce installed programs on a given client?
• Setup and depoloyment project
• Having a problem installing a service with Vista?
• Specific clickOnce per Customer
• "Full trust application" but have security exceptions...
• How do I deploy a .Net app on a PC without the framework installed?
• Missing Icon in Add/Remove Programs for ClickOnce Application