Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Error "Calculating permissions failed" in Visual Studio 2008

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 15-10-2009
Member
 
Join Date: Apr 2009
Posts: 967
Error "Calculating permissions failed" in Visual Studio 2008
  

I have a very short query here. One of my friend using Visual Studio 2008 is facing a problem from last few days. Whenever he use to click "Calculate Permissions", it gives error message saying, "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."

How to fix this error ? Help appreciated !!

Reply With Quote
  #2  
Old 15-10-2009
Member
 
Join Date: Apr 2008
Posts: 2,139
Re: Error "Calculating permissions failed" in Visual Studio 2008

This problem occurs when the Platform target property is set to x64. To work around this problem , change the value of the Platform target property to x86 or to Any CPU. To do this, follow these steps:-
  • In Solution Explorer, click the project name.
  • On the Project menu, click ProjectName Properties.
  • Click the Build tab, and then select one of the following items in the Platform target list:
    • x86
    • Any CPU
  • Click the Security tab, and then click Calculate Permissions.
Reply With Quote
  #3  
Old 15-10-2009
Member
 
Join Date: May 2008
Posts: 3,313
Re: Error "Calculating permissions failed" in Visual Studio 2008

To fix this error you can also use the PermCalc.exe file to manually create the permissions for your assembly. To do this, follow these steps:
  • Click Start, click Run, type cmd, and then click OK.
  • Type the following command, and then press ENTER:
    Code:
    cd DriveLetter:\ Program Files\Microsoft SDKs\Windows\v6.0A\bin\
  • Type the following command, and then press ENTER:
    Code:
    PermCalc ?CleanCache "AssemblyPath"
  • Locate and then open the XML file that the PermCalc.exe file created.
  • Copy and then paste the contents of the XML file into the App.manifest file in your project.
Reply With Quote
  #4  
Old 15-10-2009
Member
 
Join Date: Apr 2009
Posts: 967
Re: Error "Calculating permissions failed" in Visual Studio 2008

Thanks for the quick help, mate. That is all i wanted to know.

I hope this can help me out for sure. Help appreciated. Keep it up.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Error "Calculating permissions failed" in Visual Studio 2008"
Thread Thread Starter Forum Replies Last Post
Visual Studio 2010: features and changes compared to Visual Studio 2008 BinDs14 Guides & Tutorials 2 16-02-2011 02:49 PM
Visual Basic 2008 error "Option Strict On disallows implicit conversions" Caiden Software Development 3 30-10-2009 06:27 PM
Difference between Visual studio 2005 and Visual studio 2008 RohanS Software Development 3 12-06-2009 10:48 AM
When you run Dcpromo.exe on Windows 2008 to create a replica domain controller, you receive a message "The operation failed because: A domain controller could not be contacted ... "Access is denied." John Wu Active Directory 4 15-05-2009 11:48 AM
"security descriptor" error when copying permissions with robocopy JamesW Windows Server Help 5 15-05-2007 08:31 AM


All times are GMT +5.5. The time now is 12:14 AM.