ASP.NET网站管理工具的安全选项无法打开
发表于:2024-12-01 作者:热门IT资讯网编辑
编辑最后更新 2024年12月01日,环境:Win7+VS2010+SQLServer 2008R22,在web.config里面添加以下代码即可:
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="NorthwindConnectionString"
applicationName="northWind"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed" />
enabled="true"
cacheRolesInCookie="true"
cookieName=".ASPROLES"
cookieTimeout="30"
cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieProtection="All" >
name="SqlProvider"
type="System.Web.Security.SqlRoleProvider"
connectionStringName="NorthwindConnectionString"
applicationName="northWind" />
providerName="System.Data.Sqlclient"/>
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="NorthwindConnectionString"
applicationName="northWind"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed" />
cacheRolesInCookie="true"
cookieName=".ASPROLES"
cookieTimeout="30"
cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieProtection="All" >
type="System.Web.Security.SqlRoleProvider"
connectionStringName="NorthwindConnectionString"
applicationName="northWind" />
3,正常之后: