Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
控制台应用程序中的System.Web.Security_Security_Web_System_Console Application_Formsauthentication - Fatal编程技术网

控制台应用程序中的System.Web.Security

控制台应用程序中的System.Web.Security,security,web,system,console-application,formsauthentication,Security,Web,System,Console Application,Formsauthentication,我想在控制台应用程序中生成HashPasswordForStoringInConfigFile。 它是在web应用程序中使用以下类完成的 System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str_value, "md5") 但System.Web.Security类在控制台应用程序中不可用 有人能告诉我一个替代方法吗 或 是否可以在控制台应用程序中导入System.Web.Security类 任

我想在控制台应用程序中生成HashPasswordForStoringInConfigFile。 它是在web应用程序中使用以下类完成的

System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str_value, "md5")
但System.Web.Security类在控制台应用程序中不可用 有人能告诉我一个替代方法吗 或 是否可以在控制台应用程序中导入System.Web.Security类 任何帮助都将不胜感激

多谢各位
Suvidha包含System.Web参考

右键单击项目下解决方案资源管理器中的“引用”,然后单击“添加引用”

然后在程序集-->框架下,选择System.Web并单击确定