Microsoft Knowledge Base Email Alertz

The Permission Calculator may add exaggerated permissions or overly restrictive permissions to the application in Visual Studio 2008

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 945356 - Last Review: January 30, 2008 - Revision: 1.0

The Permission Calculator may add exaggerated permissions or overly restrictive permissions to the application in Visual Studio 2008

On This Page

SYMPTOMS

When you run the Permission Calculator in Microsoft Visual Studio 2008, the Permission Calculator may add exaggerated permissions or overly restrictive permissions to the application.

CAUSE

This problem occurs when the Permission Calculator cache files are not installed on the computer that is running Visual Studio 2008.

WORKAROUND

To work around this problem, use one of the following methods.

Method 1

In Visual Studio 2008, turn on the Exception Assistant. When you debug the application, the Exception Assistant is displayed. You can use the Exception Assistant to grant specific permissions for the application. This process is required for each permission.

To turn on the Exception Assistant in Visual Studio 2008, follow these steps:
  1. On the Tools menu, click Options.
  2. In the Options dialog box, expand Debugging, and then click General.
  3. Click to select the Enable the exception assistant check box, and then click OK.

Method 2

Go directly to the Security tab of the project options, and then manually review the permissions. To do this, follow these steps:
  1. In Solution Explorer, right-click the project name, and then click Properties.
  2. Click the Security tab.
  3. In the ClickOnce Security Permissions area, review the permissions, and then manually grant the permissions that are required for the application.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about how to determine the permissions for a ClickOnce application, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/91z17fc9(VS.90).aspx (http://msdn2.microsoft.com/en-us/library/91z17fc9(VS.90).aspx)
For more information about the Exception Assistant, visit the following MSDN Web site:
http://msdn2.microsoft.com/en-us/library/197c1fsc.aspx (http://msdn2.microsoft.com/en-us/library/197c1fsc.aspx)

APPLIES TO
  • Microsoft Visual Studio 2008 Standard Edition
  • Microsoft Visual Studio 2008 Professional Edition
  • Microsoft Visual Studio 2008 Academic Edition
Keywords: 
kbtshoot kbpubtypekc kbprb KB945356
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate