背景:刚买的**万网空间**,把平台部署上去,数据库也导入了,平台界面可以打开。
问题:但登录时,老是提示“输入的用户名或密码错误“,之前在别的空间部署这个
平台出现类似问题,当时的原因是数据库连接问题,即web.config文件数据库连接
参数不对,现在我把web.config代码贴上,供参考:
<?xml version="1.0"?>
<appSettings>
<add key="ConnectionString" value="Data Source=qds157513259.my3w.com:1433;Initial Catalog=qds157513259_db;User ID=qds157513259;Password=0p9o"/>
<pages buffer="true" enableViewStateMac="false" smartNavigation="false" validateRequest="false"/>
<customErrors mode="Off" defaultRedirect="ErrorPage.aspx"></customErrors>
<authentication mode="Windows"/>
<httpRuntime maxRequestLength="10000" useFullyQualifiedRedirectUrl="true" executionTimeout="7200"></httpRuntime>
<authorization>
<allow users="*"/>
</authorization>
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
<sessionState mode="InProc" timeout="20"/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
</system.web>