Select the product you need help with
How to configure legacy encryption mode in ASP.NETArticle ID: 2425938 - View products that this article applies to. SUMMARYThe security update that is described in Microsoft security bulletin MS10-070 makes changes to the default encryption mechanism in ASP.NET to perform validation (signing) in addition to encryption. This article describes configuration options to revert to legacy behavior for encryption in ASP.NET. For more information about this security update, visit the following website: http://www.microsoft.com/technet/security/bulletin/ms10-070.mspx
(http://www.microsoft.com/technet/security/bulletin/ms10-070.mspx)
MORE INFORMATIONASP.NET allows users to optionally encrypt or validate data through configuration in the MachineKey section. The security update that is addressed by security update MS10-070 changes the default behavior of encryption in ASP.NET to perform validation in addition to encryption even if only encryption is requested. After you install the security update that is described in security bulletin MS10-070, the following operations are performed when encryption is set up for ASP.NET:
Collapse this table
Description of the aspnet:UseLegacyEncryption appSettingThis application setting specifies whether encryption will additionally perform validation with an HMAC key even when the validation section in the machineKey section of ASP.NET configuration is not configured for HMAC signature validation.Collapse this table
To configure this setting, add the following configuration in your computer or application web.config file: <configuration> ... <appSettings> ... <add key="aspnet:UseLegacyEncryption" value="false" /> </appSettings> </configuration> Description of aspnet:UseLegacyMachineKeyEncryption appSettingThis application setting specifies whether encryption through the System.Web.Security.MachineKey class will additionally perform validation with an HMAC key even when the provided MachineKeyProtection argument does not specify that validation be performed.Collapse this table
To configure this setting, add the following configuration in your computer or application web.config file: <configuration> ... <appSettings> ... <add key="aspnet:UseLegacyMachineKeyEncryption" value="false" /> </appSettings> </configuration> Description of aspnet:ScriptResourceAllowNonJsFiles appSettingThis application setting specifies whether the ScriptResource.axd handler in ASP.NET will serve non-JavaScript files (.js extension). ScriptResource.axd is an ASP.NET handler that returns JavaScript source files to AJAX components in an ASP.NET webpage.Collapse this table
To configure this setting, add the following configuration in your computer or application web.config file: <configuration> ... <appSettings> ... <add key="aspnet:ScriptResourceAllowNonJsFiles" value="false" /> </appSettings> </configuration> ReferencesFor more information about the MachineKey section, visit the following Microsoft website: http://msdn.microsoft.com/en-us/library/w8h3skw9.aspx
For more information about the System.Web.Security.MachineKey class, visit the following Microsoft website:
(http://msdn.microsoft.com/en-us/library/w8h3skw9.aspx)
http://msdn.microsoft.com/en-us/library/system.web.security.machinekey.aspx For more information about how to use application settings (appSettings), click the following article numbers to view the articles in the Microsoft Knowledge Base:
(http://msdn.microsoft.com/en-us/library/system.web.security.machinekey.aspx)
815786
For more information about ASP.Net configuration, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/815786/
)
How to store and retrieve custom information from an application configuration file by using Visual C# 313405
(http://support.microsoft.com/kb/313405 /
)
How to store and retrieve custom information from an application configuration file by using Visual Basic .NET or Visual Basic 2005307626
(http://support.microsoft.com/kb/307626/
)
INFO: ASP.NET Configuration OverviewPropertiesArticle ID: 2425938 - Last Review: September 29, 2010 - Revision: 1.5 APPLIES TO
| Article Translations
|


Back to the top








