用户 'sa' 登录失败是怎么回事?
谁帮我看看好么..是在51aspx下的源代码.配置好之后访问出来这个..<connectionStrings><removename="LocalSqlServer"/>...
谁帮我看看好么..是在51aspx下的源代码.配置好之后访问出来这个..
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="SQLCONNECTIONSTRING" connectionString="data source=.\SqlExpress;AttachDbFilename=|DataDirectory|\CMSDB.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="XmlSiteMapProvider"
description="Default SiteMap provider."
type="System.Web.XmlSiteMapProvider "
siteMapFile="Web.sitemap"
securityTrimmingEnabled="true" />
</providers>
</siteMap>
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
</system.web>
</configuration>
web.config在这里,看看有什么不对的么? 展开
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="SQLCONNECTIONSTRING" connectionString="data source=.\SqlExpress;AttachDbFilename=|DataDirectory|\CMSDB.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="XmlSiteMapProvider"
description="Default SiteMap provider."
type="System.Web.XmlSiteMapProvider "
siteMapFile="Web.sitemap"
securityTrimmingEnabled="true" />
</providers>
</siteMap>
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
</system.web>
</configuration>
web.config在这里,看看有什么不对的么? 展开
展开全部
Try to use "sa" to log in db directly
if (success)
{
1:check "sa" if has entrance to the database you want to connect.
2:check connection string
}
else
{
Log in with windows check model,and create account
}
if (success)
{
1:check "sa" if has entrance to the database you want to connect.
2:check connection string
}
else
{
Log in with windows check model,and create account
}
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询