Server Error in '/' Application.解释一下这种现象并给出解决办法
用户'sa'登录失败。Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebr...
用户 '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 (0x80131904): 用户 'sa' 登录失败。]
Kenxusoft.BookBao.Data.KxDataProvider.Execute(KxDataQuery sqlQuery) +3240
Kenxusoft.BookBao.Data.KxDataProvider.Execute1(KxDataStoreProcedures sp) +1965
Kenxusoft.BookBao.Library.KxDataBook.GetPageList3(String tblName, String fldName, String fldSort, Int32 SortType, String where, Int32 pageSize, Int32 pageIndex, Int32& recordCount) +1109
Kenxusoft.BookBao.App.List.Get_BookList(Int32 CID, Int32 Type, Int32 Order) +2451
Kenxusoft.BookBao.App.List.Page_Load(Object sender, EventArgs e) +871
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1 展开
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 (0x80131904): 用户 'sa' 登录失败。]
Kenxusoft.BookBao.Data.KxDataProvider.Execute(KxDataQuery sqlQuery) +3240
Kenxusoft.BookBao.Data.KxDataProvider.Execute1(KxDataStoreProcedures sp) +1965
Kenxusoft.BookBao.Library.KxDataBook.GetPageList3(String tblName, String fldName, String fldSort, Int32 SortType, String where, Int32 pageSize, Int32 pageIndex, Int32& recordCount) +1109
Kenxusoft.BookBao.App.List.Get_BookList(Int32 CID, Int32 Type, Int32 Order) +2451
Kenxusoft.BookBao.App.List.Page_Load(Object sender, EventArgs e) +871
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1 展开
1个回答
展开全部
Server Error in '/' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
下面的出错原因是什么,我空间是不支持SQL数据库的.请问是不是和这个有关系,但我制作时没有用到SQL数据库.
可惜我看不懂请各位高手指点
Server Error in '/' Application.
--------------------------------------------------------------------------------
连接数据库失败:
未指定的错误
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.Exception: 连接数据库失败:
未指定的错误
Source Error:
Line 38: catch(Exception ex)
Line 39: {
Line 40: throw new Exception("连接数据库失败:\n\n" + ex.Message.ToString());
Line 41: }
Line 42: }
Source File: d:\freehost\xxszyy\web\App_Code\DAL\SqlServerOption.cs Line: 40
Stack Trace:
[Exception: 连接数据库失败:
未指定的错误]
System.DAL.SqlServerOption.GetAccessConn() in d:\freehost\xxszyy\web\App_Code\DAL\SqlServerOption.cs:40
System.DAL.SqlServerOption.GetDataTable(String sql) in d:\freehost\xxszyy\web\App_Code\DAL\SqlServerOption.cs:57
index.Page_Load(Object sender, EventArgs e) in d:\freehost\xxszyy\web\index.aspx.cs:27
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
下面的出错原因是什么,我空间是不支持SQL数据库的.请问是不是和这个有关系,但我制作时没有用到SQL数据库.
可惜我看不懂请各位高手指点
Server Error in '/' Application.
--------------------------------------------------------------------------------
连接数据库失败:
未指定的错误
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.Exception: 连接数据库失败:
未指定的错误
Source Error:
Line 38: catch(Exception ex)
Line 39: {
Line 40: throw new Exception("连接数据库失败:\n\n" + ex.Message.ToString());
Line 41: }
Line 42: }
Source File: d:\freehost\xxszyy\web\App_Code\DAL\SqlServerOption.cs Line: 40
Stack Trace:
[Exception: 连接数据库失败:
未指定的错误]
System.DAL.SqlServerOption.GetAccessConn() in d:\freehost\xxszyy\web\App_Code\DAL\SqlServerOption.cs:40
System.DAL.SqlServerOption.GetDataTable(String sql) in d:\freehost\xxszyy\web\App_Code\DAL\SqlServerOption.cs:57
index.Page_Load(Object sender, EventArgs e) in d:\freehost\xxszyy\web\index.aspx.cs:27
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
威孚半导体技术
2024-08-19 广告
2024-08-19 广告
威孚(苏州)半导体技术有限公司是一家专注生产、研发、销售晶圆传输设备整机模块(EFEM/SORTER)及核心零部件的高科技半导体公司。公司核心团队均拥有多年半导体行业从业经验,其中技术团队成员博士、硕士学历占比80%以上,依托丰富的软件底层...
点击进入详情页
本回答由威孚半导体技术提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询