Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dears,

i am using DPAPI Encryption-Decryption and it is working normally but while i publish the website and host it (local Deployment) o get this error(System.ComponentModel.Win32Exception: Key not valid for use in specified state) in the encryption-decryption knowing that it works normally when i debug in Visual studio !??!?! please very urgent can any one help!!
Regards.
Posted
Comments
youssef_123 14-May-12 3:57am    
knowing that my is PC: 64-bit

1 solution

machine debugger is located at: c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\GuiDebug\DbgCLR.exe. DbgCLR MSDN link http://msdn.microsoft.com/en-us/library/7zxbks7z%28VS.80%29.aspx[^]

Useful blog reference is available at http://www.aboutmydot.net/desktop-applications/debugging/unhandled-exception-win32exceptionerror-creating-window-handle.html[^]
 
Share this answer
 
Comments
youssef_123 14-May-12 4:18am    
what is this mean?! i don't understand as i read on the internet this due to loss of decryption key!?!?!?!? help!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900