You may not have the right on accessing C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys. Please check the access right.
Phinehas.
Marked as answer by poojakulkarni on May 24, 2012 12:52 AM
You can fix this with one of the following method:
1. I'm using Windows Server 2008
2. Open IIS
3. Navigate to the web site that is causing the problem
4. Under Security within the Home section of the web site, click Authentication
6. Disable ASP.NET impersonation
or
aspnet_regiis -pa "NetFrameworkConfigurationKey" "ASPNET"
aspnet_regiis -pa "NetFrameworkConfigurationKey" "NETWORK SERVICE"
aspnet_regiis -pa "NetFrameworkConfigurationKey" "NT AUTHORITY\NETWORK SERVICE"
aspnet_regiis -pa "NetFrameworkConfigurationKey" "NT AUTHORITY\SYSTEM"
poojakulkarn...
Member
24 Points
109 Posts
Hi, Error when i try running teh project
May 21, 2012 01:41 AM|LINK
<connectionStrings configProtectionProvider="RsaProtectedConfigurationProvider"> <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns="http://www.w3.org/2001/04/xmlenc#"> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#"> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <KeyName>Rsa Key</KeyName> </KeyInfo> <CipherData> <CipherValue>XlVQYEPhel4pkZF+rk0TpZP7cj+rZIqM8wxlbuyV/W4jP/TohPWtlqLX+1ehDB36L5qmRAo3nt0noICTlISyA104o2wy11fV170QjqJFy4raqRtCHFYQAYWwO2aXG5zbh1tzhod559lV7U98Z9xE0sJ75A1YPefebyplLDTFcVU=</CipherValue> </CipherData> </EncryptedKey> </KeyInfo> <CipherData> <CipherValue>2dgivE+V0IWujD1O7sOFPasmDV3dNziqgToV0aV/cuDa0eMqorxpk9zbhSxRgiIXiK0LlqwRjmvNCHpZf0GUw1nfOHUqYwl+vLgANWe/uKGIp4KjhgWXSzOW/Lgh78zU08y03IA94XVZZ9vj3AV4EC/Up5pkOJoqgCd720CovhAmrgF0DXPqhII7YwDqJFGyBxK0z4J+zbZsk0MBLlS0CAgyKD+j/ANA3uG1GoKu9wBOIXvYkuq/9NzjaUKfVhvGykrZhNkw/yb8xPiezo7JQUftugZDbxkHXF0op7oGOOl8KX8Zs4niaRU0nsaMYS2z4++Mpa54dHf83MYoQdO86E7w/Lx/AbpLWlkKQD9WNGLrsTYJ9urcOnhq/kzn2sVZAnpqX6VYKvwOGxY/Kjx32sFHPeYw5eLCJxIipS+WMs73Q8oPEG0HxMQRFnqFy9D0tw8be+KngoGLi/NyR60Ecfwj5Q5pVAZ9n9NwjXezLYqbJFsXFyHVjJbZauftN96KIqYMureEF8TAob6y1ccBnuISo2rlj11vVMAj82kc95/1xac2DVbmauNo+MyzBTt98xhYA+Fxs18=</CipherValue> </CipherData> </EncryptedData> </connectionStrings>asp.net.c#
Mamba Dai - ...
All-Star
23531 Points
2683 Posts
Microsoft
Re: Hi, Error when i try running teh project
May 23, 2012 09:10 AM|LINK
Hi,
This error occurs may the current user doesn't have right to access the RSA. since by default ,RSA key containers are tightly protected by
NTFS access control lists (ACLs) on the server where they are installed. This improves the security of the encrypted information by restricting
who can access the encryption key. Before ASP.NET can use an RSA key container, the process identity of your ASP.NET application must
be authorized to have read access to that RSA key container.
How to do this please check this reference:
http://msdn.microsoft.com/en-us/library/yxw286t2.aspx</>
There are some useful information for you:
http://stackoverflow.com/questions/2921589/the-rsa-key-container-could-not-be-opened
http://forums.asp.net/p/1548870/3792350.aspx
http://blogs.msdn.com/b/mosharaf/archive/2005/11/17/protectedconfiguration.aspx
Feedback to us
Develop and promote your apps in Windows Store
Phinehas
Member
361 Points
238 Posts
Re: Hi, Error when i try running teh project
May 23, 2012 09:14 AM|LINK
You may not have the right on accessing C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys. Please check the access right.
RameshRajend...
Star
7983 Points
2099 Posts
Re: Hi, Error when i try running teh project
May 23, 2012 01:45 PM|LINK