Saturday, February 14, 2004

 

FormsAuthentication.Decrypt causes System.Security.Cryptography.CryptographicException: Bad Data Error

If you have "Bad Data" error - remove "IsolateApps" attributes from machine.config file:
1) Open C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config
2) Find "<machineKey"
3) Remove two "IsolateApps" attributes from <machineKey> element.
Before:
<machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="SHA1"/>
After:
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1"/>
4) Restart IIS.

Removing of "IsolateApps" attributes from machine.config is necessary in order to provide smooth security integration between several web-applications.
More details:
microsoft.public.dotnet.framework.aspnet.security: FormsAuthentication.Decrypt causes System.Security.Cryptography.CryptographicException: Bad Data Error



Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?