asp.net 用户sa登录失败

源错误:行39:U_UserobjUser=newSelect().From<U_User>().Where("Login").IsEqualTo(username).A... 源错误: 行 39: U_User objUser = new Select().From<U_User>().Where("Login").IsEqualTo(username).And("PassWord").IsEqualTo(password).ExecuteSingle<U_User>();
堆栈跟踪:
[SqlException (0x80131904): 用户 'sa' 登录失败。]
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +414
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78
System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +167
System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +143
System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +83
System.Data.SqlClient.SqlConnection.Open() +96
SubSonic.SqlDataProvider.CreateConnection(String newConnectionString) +76
SubSonic.SqlDataProvider.CreateConnection() +64
SubSonic.AutomaticConnectionScope..ctor(DataProvider provider) +191
SubSonic.SqlDataProvider.ExecuteScalar(QueryCommand qry) +88
SubSonic.DataService.ExecuteScalar(QueryCommand cmd) +72
SubSonic.SqlDataProvider.GetDatabaseVersion(String providerName) +92
SubSonic.DataProvider.get_DatabaseVersion() +95
SubSonic.Utilities.Utility.IsSql2005(DataProvider provider) +38
SubSonic.DataService.GetGenerator(DataProvider provider, SqlQuery sqlQuery) +229
SubSonic.SqlQuery.GetGenerator() +117
SubSonic.SqlQuery.BuildSqlStatement() +75
SubSonic.SqlQuery.BuildCommand() +49
SubSonic.SqlQuery.ExecuteReader() +64

[SqlQueryException: 用户 'sa' 登录失败。]
SubSonic.SqlQuery.ExecuteReader() +123
SubSonic.SqlQuery.ExecuteSingle() +72
login.Page_Load(Object sender, EventArgs e) in h:\襄阳\XYDC0819\XYDC\login.aspx.cs:39
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
BLL.BasePage.OnLoad(EventArgs e) in h:\襄阳\XYDC0819\XYDC\App_Code\BLL\BasePage.cs:31
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
求解答~
展开
 我来答
handangaoyang
2015-09-18 · TA获得超过2242个赞
知道大有可为答主
回答量:2633
采纳率:88%
帮助的人:892万
展开全部
  1. 检查你数据库服务是否开启

  2. 检查用户名密码是否正确

镭速传输
2024-10-28 广告
作为深圳市云语科技有限公司的一员,我们推出的FTP替代升级方案,旨在解决传统FTP在安全性、效率、稳定性及管理方面的不足。我们的产品通过采用自主研发的Raysync传输协议,实现高效、安全的文件传输,即使在恶劣网络环境下也能确保传输的稳定性... 点击进入详情页
本回答由镭速传输提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

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

类别

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

说明

0/200

提交
取消

辅 助

模 式