asp.net的web.config配置有问题,求大神帮忙看一下这个web.config

我觉的应该是web.config的配置文件有问题,我拖出一个Login控件,账号密码无论怎么输入每次都提示Yourloginattemptwasnotsuccessful... 我觉的应该是web.config的配置文件有问题,我拖出一个Login控件,账号密码无论怎么输入每次都提示
Your login attempt was not successful. Please try again.

<?xml version="1.0"?>

<configuration>
<connectionStrings>
<add name="eduManageConnectionString" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<globalization
fileEncoding="gb2312"
requestEncoding="GB2312"
responseEncoding="GB2312"

uiCulture="de-DE"
/>

<compilation debug="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="eduManageConnectionString" 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="eduManageConnectionString" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="true">
<providers>
<clear/>
<add connectionStringName="eduManageConnectionString" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider"/>
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider"/>
</providers>
</roleManager>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
展开
 我来答
太马小1D
2017-06-15 · TA获得超过349个赞
知道小有建树答主
回答量:397
采纳率:80%
帮助的人:70.8万
展开全部
那估计的看你的代码吧。如果你认为你的代码没有问题,那唯一可能导致出现这种问题的原因就是数据库连接字符串配置错误,仔细检查下。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式