控制台应用程序中的System.Web.Security
我想在控制台应用程序中生成HashPasswordForStoringInConfigFile。 它是在web应用程序中使用以下类完成的控制台应用程序中的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类 任
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str_value, "md5")
但System.Web.Security类在控制台应用程序中不可用
有人能告诉我一个替代方法吗
或
是否可以在控制台应用程序中导入System.Web.Security类
任何帮助都将不胜感激
多谢各位
Suvidha包含System.Web参考 右键单击项目下解决方案资源管理器中的“引用”,然后单击“添加引用” 然后在程序集-->框架下,选择System.Web并单击确定