i got this error after i run encrypt-decrypt that i posted earlier in this blog..
After successfully encrypt the web configuration, it seems that everything was fine.
but when i reload/refresh the web page, this error show up.
This error occurs if the user does not have the right to access the key container.
after a few search, i found the solution. this is how to solve it...
1. go to folder 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG' on windows explorer
2. find file 'machine.config' and open it
3. search for key : 'keyContainerName'. the value in my machine : 'NetFrameworkConfigurationKey'
4. Back to windows explore, go to folder: 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727'
5. Give permission to ASPNET by writing this : aspnet_regiis -pa "[KeyContainerNameValue]" "ASPNET"
6. Give permission to Users by writing this : aspnet_regiis -pa "[KeyContainerNameValue]" "Users"
that should do it...
thanks to mr. Sanjay
On this page: http://sanjaysainitech.blogspot.com/2007/06/error-rsa-key-container-could-not-be.html
Best Regards,
Fedrik
No comments:
Post a Comment