Results 1 to 4 of 4

Thread: Error "Calculating permissions failed" in Visual Studio 2008

  1. #1
    Join Date
    Apr 2009
    Posts
    970

    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 !!

  2. #2
    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.

  3. #3
    Join Date
    May 2008
    Posts
    3,316

    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.

  4. #4
    Join Date
    Apr 2009
    Posts
    970

    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.

Similar Threads

  1. Replies: 2
    Last Post: 16-02-2011, 02:49 PM
  2. Replies: 3
    Last Post: 30-10-2009, 06:27 PM
  3. Difference between Visual studio 2005 and Visual studio 2008
    By RohanS in forum Software Development
    Replies: 3
    Last Post: 12-06-2009, 10:48 AM
  4. Replies: 4
    Last Post: 15-05-2009, 11:48 AM
  5. Replies: 5
    Last Post: 15-05-2007, 08:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,868,965.05193 seconds with 16 queries