Server Error in '/' Application.出现这个问题,怎么回事?

emperordj 2008-05-12 11:00:00
发布网站,放在网上,就出现了这个问题,但并不是每个页面会出现,其他页面运行完全没问题,就是这个页面,而且在其他页面的数据库连接也没什么异常,这我就搞不懂了,既然其他页面没问题,那是代码的问题?
可放在公网前运行明明好好的,怎么回事呢

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>

...全文
284 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
skyaspnet 2008-05-13
  • 打赏
  • 举报
回复
有可能,你在页面的Page指令里加入Debug="true",看一下报什么错,如果没有就按上面的步骤做
emperordj 2008-05-12
  • 打赏
  • 举报
回复
\inetsrv rundll32 wamreg.dll, CreateIISPackage regsvr32 asptxn.dll
这里是三个文件吗?
第一步,我可以正常启动,我就是想搞清楚,这个是不是我代码的问题
insus 2008-05-12
  • 打赏
  • 举报
回复
先照错误的提示,把web.Config中的:
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>

改为:
<system.web>
<customErrors mode="Off"/>
</system.web>
然后上传改好的web.Config覆盖.再run
这样错误一定会显示出来.然后再根据错误,作出相应的修正.
skyaspnet 2008-05-12
  • 打赏
  • 举报
回复
解决方法如下:

[1]: 检查你的DTC服务(全名:Distributed Transaction Coordinator)是否可以正常启动, 如果正常的话请你跳过此步骤;如果出错,无法正常启动,请在开始菜单的运行中 运行:msdtc -resetlog 以创建日志文件。重起机器,检查IIS是否可以正常使用,若不行继续。

[2]: 在CMD下执行以下命令: cd %windir%\system32\inetsrv rundll32 wamreg.dll, CreateIISPackage regsvr32 asptxn.dll (到这里我就可以用了,不用重启的) OK,ASP页面一切正常了@!~~~^_^

62,046

社区成员

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

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

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

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