我面临的一个奇怪的问题ASP.Net Web应用程序安全不工作在IIS 7上?
我使用Visual Studio 2010,SQL赢服务器2008
上表示2008年运行安全向导(创建一个用户后,设置权限一样拒绝匿名,并允许创建的用户)并按下F5 - >该网站工作得很好。
当我将文件夹移动到IIS 7和“转换为应用程序”的登录页面出现,但它不会接受我提供的密码。
我被告知只有Stackoverflow天才会回答这个问题。
我使用的.Net 4,manged pipleine模式 - > inegrated
IIS设置:
匿名验证。 - > Enabled
Forms Auth。 - >已启用
ASP.Net模拟,基本身份验证,摘要验证,Windows验证 - >禁用
的web.config
<configuration>
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<authorization>
<deny users="?"/>
<allow users="statmaster"/>
</authorization>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
</providers>
</roleManager>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
的用户名在aspnet_Users表格内和用户名存在在aspnet_Membership表
什么验证你有虚拟目录设置?你在web.config中指定了哪些认证? – slugster 2011-01-20 08:23:55