visual studio错误System.ComponentModel.Win32Exception:密钥在指定状态下无效 [英] visual studio error System.ComponentModel.Win32Exception: Key not valid for use in specified state

查看:115
本文介绍了visual studio错误System.ComponentModel.Win32Exception:密钥在指定状态下无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我正在使用DPAPI加密解密,但是它可以正常工作,但是当我发布网站并将其托管(本地部署)时,在加密解密中收到此错误(System.ComponentModel.Win32Exception:密钥在指定状态下无效)知道当我在Visual Studio中调试时它可以正常工作吗?????!?!请非常紧急,任何人都可以帮忙!
问候.

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.

推荐答案

计算机调试器位于:c:\ Program Files \ Microsoft Visual Studio 8 \ SDK \ v2.0 \ GuiDebug \ DbgCLR.exe. DbgCLR MSDN链接 http://msdn.microsoft.com/en-us/library /7zxbks7z%28VS.80%29.aspx [ http://www.aboutmydot.com上找到. net/desktop-applications/debugging/unhandled-exception-win32exceptionerror-creating-window-handle.html [
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[^]


这篇关于visual studio错误System.ComponentModel.Win32Exception:密钥在指定状态下无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆