Article ID: 945357 - View products that this article applies to.
When you click Calculate Permissions on the Security tab for a Microsoft Visual Studio 2008 ClickOnce application, the Calculate Permissions process may not run successfully. Additionally, you may receive the following error message:
Calculating permissions failed.
Could not load file or assembly 'AssemblyPath' or one of its dependencies. An attempt was made to load a program with an incorrect format.
To work around this problem, use one of the following methods.
Method 1Change the value of the Platform target property to x86 or to Any CPU. To do this, follow these steps:
Method 2Use the PermCalc.exe file to manually create the permissions for your assembly. To do this, follow these steps:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Article ID: 945357 - Last Review: December 12, 2007 - Revision: 1.1
Contact us for more help