官网下载时,显示信息如下:
Server Error in '/' Application. 用户 'sgcuser' 登录失败。该用户与可信 SQL Server 连接无关联。
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: 用户 'sgcuser' 登录失败。该用户与可信 SQL Server 连接无关联。
Source Error:
Line 45: SqlDataAdapter da = new SqlDataAdapter(sqlcmd);//dataadapter对象Line 46: DataSet ds = new DataSet();//数据集对象Line 47: da.Fill(ds);Line 48: SqlCommand cmd;//数据库执行对象Line 49: |
Source File: d:\www\www.sgconline.com.cn.2\downloadgc.aspx.cs Line: 47
Stack Trace:
[SqlException (0x80131904): 用户 'sgcuser' 登录失败。该用户与可信 SQL Server 连接无关联。] System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1019 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +108 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126 System.Data.SqlClient.SqlConnection.Open() +125 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +123 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +319 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +94 downloadgc.down(String area) in d:\www\www.sgconline.com.cn.2\downloadgc.aspx.cs:47 downloadgc.Page_Load(Object sender, EventArgs e) in d:\www\www.sgconline.com.cn.2\downloadgc.aspx.cs:22 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +91 System.Web.UI.Control.LoadRecursive() +74 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207 |
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
请问该怎么解决?win7系统
|