| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1828 人关注过本帖
标题:[求助]Server Error in '/' Application.
只看楼主 加入收藏
g82941016
Rank: 1
等 级:新手上路
帖 子:140
专家分:0
注 册:2006-2-23
收藏
 问题点数:0 回复次数:3 
[求助]Server Error in '/' Application.

我用vwd2005做了一个网页,在微软申请了一个空间,上传后运行时它出现这样的错误(http://seagate-1.at.vwdhosting.net/)
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>

我是在winxp系统下调试的我的网页
搜索更多相关主题的帖子: Application Server 微软 
2006-06-13 11:39
小笨笨
Rank: 5Rank: 5
等 级:贵宾
威 望:19
帖 子:1169
专家分:0
注 册:2006-4-17
收藏
得分:0 
把你的web.config文件的customErrors mode设为off,再运行一下,看看具体错误是什么

欢迎光临我的博客: http://smallfools.blog./default.html
2006-06-14 08:56
g82941016
Rank: 1
等 级:新手上路
帖 子:140
专家分:0
注 册:2006-2-23
收藏
得分:0 
还是不行,它好像说我的程序有问题,而我在自己的机器上调试一切都行正常,错误提示如下:

Server Error in '/' Application.

Selected collating sequence not supported by the operating system.

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.OleDb.OleDbException: Selected collating sequence not supported by the operating system.

Source Error:

Line 16:         con.Open();
Line 17:         OleDbCommand cmd = new OleDbCommand("select top 8 * from lr where nb='"+this.nb+"' order by dat desc",con );
Line 18:         OleDbDataReader dr = cmd.ExecuteReader();
Line 19:         this.GridView1.DataSource = dr;
Line 20:         this.GridView1.DataBind();    

Source File: d:\Users\seagate-1\kongjian\showmaintitle.ascx Line: 18

Stack Trace:

[OleDbException (0x80004005): Selected collating sequence not supported by the operating system.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +267
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +192
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +48
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +111
   System.Data.OleDb.OleDbCommand.ExecuteReader() +6
   ASP.showmaintitle.Page_Load(Object sender, EventArgs e) in d:\Users\seagate-1\kongjian\showmaintitle.ascx:18
   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.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
2006-06-14 13:38
g82941016
Rank: 1
等 级:新手上路
帖 子:140
专家分:0
注 册:2006-2-23
收藏
得分:0 
我又运行了一下,它报告
16行错误 :con.open()
有错,我的数据库放在根目录的APP_data下
这是我的数据库连接语句:
OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=" + Server.MapPath(".") + "\\app_data\\wj.mdb");
2006-06-14 13:57
快速回复:[求助]Server Error in '/' Application.
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020788 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved