前几天的一个网站,asp。net的,后台数据库用Sql。刚开始是IIS错误,然后是没有Sql Server,现在什么都有了,又出现登陆问题。忘大虾指教。
“/Chap15”应用程序中的服务器错误。
--------------------------------------------------------------------------------用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.OleDb.OleDbException: 用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。源错误:
行 95: <table cellSpacing="0" cellPadding="0" width="100%" border="0">
行 96: </table>
行 97: <%GetArticle();%>
行 98: </td>
行 99: <td align="right"><map name="Map"><IMG style="WIDTH: 93px; HEIGHT: 76px" height="119" src="Images/12.jpg" width="223" useMap="#Map" border="0"> </map></td>
源文件: C:\Inetpub\myweb\chap15\index.aspx 行: 97 堆栈跟踪:
[OleDbException (0x80004005): 用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvider() +57
System.Data.OleDb.OleDbConnection.Open() +203
Web.DataAccess.DataAccess.GetDataReader(String strSql) in c:\inetpub\wwwroot\Web\Common\DataAccess.cs:54
Web.index.GetArticle() in c:\inetpub\wwwroot\web\index.aspx.cs:85
ASP.Index_aspx.__RenderfrmIndex(HtmlTextWriter __output, Control parameterContainer) in C:\Inetpub\myweb\chap15\index.aspx:97
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +44
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +263
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
“/Chap15”应用程序中的服务器错误。
--------------------------------------------------------------------------------用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.OleDb.OleDbException: 用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。源错误:
行 95: <table cellSpacing="0" cellPadding="0" width="100%" border="0">
行 96: </table>
行 97: <%GetArticle();%>
行 98: </td>
行 99: <td align="right"><map name="Map"><IMG style="WIDTH: 93px; HEIGHT: 76px" height="119" src="Images/12.jpg" width="223" useMap="#Map" border="0"> </map></td>
源文件: C:\Inetpub\myweb\chap15\index.aspx 行: 97 堆栈跟踪:
[OleDbException (0x80004005): 用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvider() +57
System.Data.OleDb.OleDbConnection.Open() +203
Web.DataAccess.DataAccess.GetDataReader(String strSql) in c:\inetpub\wwwroot\Web\Common\DataAccess.cs:54
Web.index.GetArticle() in c:\inetpub\wwwroot\web\index.aspx.cs:85
ASP.Index_aspx.__RenderfrmIndex(HtmlTextWriter __output, Control parameterContainer) in C:\Inetpub\myweb\chap15\index.aspx:97
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +44
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +263
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货