Microsoft .NET Framework 2.0 Configuration Tool Modifies Security Policy for 32-bit Applications by default

Microsoft .NET Framework 2.0 Configuration Tool Modifies Security Policy for 32-bit Applications by default

Article ID : 953429
Last Review : May 21, 2008
Revision : 1.0
Source: Microsoft Support

Back to the top

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Back to the top

Action

On a computer running a 64-bit version of Microsoft Windows, you use the Microsoft .NET Framework 2.0 Configuration tool to configure the .NET Framework security policy.

Back to the top

Result

The changes made using the .NET Framework 2.0 Configuration tool do not apply to a 64-bit .NET Framework 2.0 application. 64-bit .NET Framework applications are assemblies compiled in Visual Studio with the Target CPU set to Any CPU (and running on a 64-bit computer), x64 or Itanium.

Back to the top

Cause

The Microsoft .NET Framework 2.0 Configuration tool only applies to 32-bit assemblies (i.e. assemblies compiled with the Target CPU set to x86). This is also true for the mscorcfg.msc MMC snap-in located in the Program Files Microsoft.NET SDK v2.0 64 bit bin folder.

This behavior is by design.

Back to the top

Resolution

Run Caspol.exe for the 64-bit version of the .NET Framework 2.0 to configure security policy for 64-bit applications.

1. Open a 64-bit .NET framework SDK command prompt or the Visual Studio x64 Command prompt.
2. Run caspol.exe to make the policy changes.

You can verify changes to the security policies saving them out to a text file and comparing. To save the policies to a text file, run the following command using both the 32-bit and 64-bit versions of Caspol.exe

Caspol –all –l > c: policy.txt

Back to the top

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

Back to the top


APPLIES TO
• Microsoft .NET Framework 2.0 x64 Edition

Back to the top

Keywords: 
kbnomt kbrapidpub KB953429

Back to the top

 

Microsoft Knowledge Base Article

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


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image