sa登陆失败?
我创建了一个项目,数据库不在本地。在本地机子上测试已经通过。吧程序放到远程服务器上创建应用程序后。登陆叶面可以正常显示,输入用户名和密码后出现以下问题了。数据库连接字符串都没有问题的,服务器上同一站点下的其他应用程序中的配置文件中的数据库连接字符串和我的程序中的配置文件中的数据库连接字符串是相同的,其他应用程序逗没问题,所以数据库连接字符串应该没问题吧。虚拟目录映射到了d盘
用户 'sa' 登录失败。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: 用户 'sa' 登录失败。
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException: 用户 'sa' 登录失败。]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +484
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
admedulawmsg.lawupdownmessage.bind_data() in c:\inetpub\wwwroot\admedulawmsg\lawupdownmessage.aspx.cs:37
admedulawmsg.lawupdownmessage.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\admedulawmsg\lawupdownmessage.aspx.cs:27
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573