Server Error in '/' Application这个错误是怎么回事呢?在网上找了,貌似都没看到解决方案??????

job_2006 2008-06-30 05:32:55
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>

------------------------------------------------------------------
上传到服务器上一天要出现几次这样的错误,重启一个服务器就好了,用不了多久又有问题,这个问题到底是怎么回事呢?
服务器是win2003的
在网上找了一下,说什么创建虚拟目录先???win2003直接就是创建网站啊

这个问题到底是什么问题呢?
...全文
92905 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
mngzilin 2009-08-08
  • 打赏
  • 举报
回复
[Quote=引用 12 楼 wdzr_826 的回复:]
就按提示上的先改了看看啊
[/Quote]

13楼正解
job_2006 2008-07-02
  • 打赏
  • 举报
回复
昨天在数据访问层那里写了一个错误日志捕捉,得到这么一句话:

A transport-level error has occurred during connection clean-up. (provider: Shared Memory Provider, error: 0 - 系统无法打开文件。)

-------------------------------------

在网上查了一下是这样描述:
遇到错误信息:"A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - Shared Memory Provider: )"。
You receive the exception with the message: "A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - Shared Memory Provider: )" in your ASP.NET application with MS SQL Server


这个情况是因为SQL Server遇到了一些Issues而不得不去刷新所有的连接,但是ADO.net仍然认为这些连接是有效的。This occurs when MS SQL Server 2000 encounter some issues and has to refresh all the connections and ADO.NET still expects the connection from the pool. Basically, it occurs when connection pool gets corrupted. What in turn happens is, ADO.NET thinks that the valid connection exists with database server, but actually, due to database server getting restarted it has lost all the connections.

Solution(s) : 解决办法

1. 如果你使用Oracle ODP.NET V9.2.0.4以上,你可能在连接字符串中加上"Validate Connection=true","validcon=true"可能在ODP.NET V9.2.0.4以前工作。
If you are working with .NET and Oracle using ODP.NET v 9.2.0.4 or above, you can probably try adding "Validate Connection=true" in the connection string. Well, in couple of places, I noticed people saying use "validcon=true" works for them for prior versions on ODP.NET. See which works for you. With ODP.NET v 9.2.0.4, "validcon=true" errors out and "Validate Connection=true" works just fine.

2. 如果你使用.NET 2.0 和SQL Server,你可以通过调用连接对象的ClearPoool方法来清除这些连接。SQLClient和OracleClient 都实现了这些方法。If you are working with .NET 2.0 and MS SQL Server, You can clear a specific connection pool by using the static (shared in Visual Basic .NET) method SqlConnection.ClearPool or clear all of the connection pools in an appdomain by using the SqlConnection.ClearPools method. Both SqlClient and OracleClient implement this functionality.

-------------------------------------------------------------
我每次连接都关闭了的啊?难道每次都要去写什么ClearPoool????

请各位高手解答解答
DoubleFrost 2008-07-01
  • 打赏
  • 举报
回复
iis里你那个文件夹也应该配置成虚拟目录,并且2003默认的是不启用asp.net的,你要将其启用。web.config里不要改
wdzr_826 2008-07-01
  • 打赏
  • 举报
回复
就按提示上的先改了看看啊
wdzr_826 2008-07-01
  • 打赏
  • 举报
回复
关注
gimse7en 2008-07-01
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 cai3725 的回复:]
引用 2 楼 zero8500 的回复:
帮顶

关注
[/Quote]
keyake863 2008-07-01
  • 打赏
  • 举报
回复
一个病人去买药,大夫问他买什么药,他只说,我要买药。
如此而已。
job_2006 2008-07-01
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 isline 的回复:]
<customErrors mode="RemoteOnly">改为 <customErrors mode="Off"/>
[/Quote]

改了也没用,今天在IIS上搞了一翻,看到了Webconfig版本里有一个编辑webconfig,里面有一个customErrors项,可能是要改这里吧,等网站出问题了再去设置一下看看到底是什么问题,郁闷!~
  • 打赏
  • 举报
回复
<customErrors mode="RemoteOnly">改为<customErrors mode="Off"/>
vrhero 2008-06-30
  • 打赏
  • 举报
回复
这段话的意思是...出了问题,出什么问题呢,不告诉你...你需要修改web.config...将<customErrors>标记中的mode属性改为Off才知道...

初学.net没关系...但是还要学点别的...例如英语...
job_2006 2008-06-30
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 vrhero 的回复:]
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>

[/Quote]

就是出现的这个问题啊,重启服务器就会正常,偶尔又会出错!~
正宗熊猫哥 2008-06-30
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 zero8500 的回复:]
帮顶

关注
[/Quote]
jamesfay 2008-06-30
  • 打赏
  • 举报
回复
we.config 重复了

比如你在iisroot下有一个web.config,然后在你的虚拟目录下,你又搞了一个asp.net的程序,也有一个web.config,这个时候就冲突了

这种问题仅存在于asp.net 1.0 1.1上面,2.0就没这种问题。


你是用了1.1开发的吗?如果是的话只能另外搞一个站点了,或者把所在虚拟目录上级的web.config移掉
zero8500 2008-06-30
  • 打赏
  • 举报
回复
帮顶

关注
vrhero 2008-06-30
  • 打赏
  • 举报
回复
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>

先问问你的系统出了什么问题再来这里问...说不清症状哪儿来的什么解决方案...

62,041

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧