I got this message after I created a new user profile on my virtual machine (VMWare), and tried to compile my ORM project (using Telerik OpenAccess ORM). The error was wrapped as: OpenAccess Error: Key not valid for use in specified state.
This is not a problem for OpenAccess only though. I’ve seen that it also may be a problem for other applications, like SQL Server Reporting Services.
The solution:
- Go into the folder (Windows XP) at:
<drive>:\Documents and Settings\<your windows user account name>\Application Data\Microsoft\Crypto\DSS\<your machine SID>\ - Delete the file there. It should have some cryptic name (like a GUID).
- Restart IIS (IISRESET).
- Recompile. It worked for me.
References:
Thank you, It works with me for desktop app also.
ReplyDeleteThanks, it worked for me.
ReplyDelete