200分,急,为什么有的IIS不能显示错误提示?怎么设置?被人乱动过了。

超级大笨狼 2004-11-22 09:12:37
为什么有的IIS不能显示错误提示?怎么设置?被人乱动过了。
我想显示错误的行号和原因。

因为那程序只能在服务器上调试,而服务器上的IIS6谁都弄,现在显示不了错误行号,不管什么错误都是500,MD,耽误我事情。


...全文
173 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
yb2008 2004-11-24
  • 打赏
  • 举报
回复
不行重装算了,
ceocio 2004-11-23
  • 打赏
  • 举报
回复
把IE高级选项中的显示友好的http错误关掉既可
nattyfish 2004-11-23
  • 打赏
  • 举报
回复
全是显示500错误啊,真是麻烦啊,IIS有问题了吧,处理一下啊!
wesheng 2004-11-22
  • 打赏
  • 举报
回复
这个问题是IIS本身的问题,建议你用多次刷新的方式调试。
shijian58 2004-11-22
  • 打赏
  • 举报
回复
恭喜恭喜找到原因了
超级大笨狼 2004-11-22
  • 打赏
  • 举报
回复
我想知道是哪行出错误了。

我自己的机器没问题,就是服务器,里面用道了好多特殊的东西。

比如多服务器共享session的组件,在我机器就没法实验。
dipperstudio 2004-11-22
  • 打赏
  • 举报
回复
恢复一下IIS里面的默认设置,2003server的选项中有
或者你自己重新定义一下默认的错误信息
实在不行就把IIS卸掉重装一遍试试
redondo520 2004-11-22
  • 打赏
  • 举报
回复
是在internet选项下的设置吗?IIS里面好像没有设置错误提示的吧
是不是把显示每个脚本错误的选项钩上就行了?
bolm 2004-11-22
  • 打赏
  • 举报
回复
使用了友好提示的话就没有错误信息了!
bozy 2004-11-22
  • 打赏
  • 举报
回复
on error resume nexe ==〉on error resume next
bozy 2004-11-22
  • 打赏
  • 举报
回复
網站屬性-〉應用程序設定-〉錯誤-〉現實詳細的asp錯誤信息給客戶端(選中)
或者再結合 on error resume nexe ...... response.write err.description 使用

----------
不好意思,現醜了。。。
Jaron 2004-11-22
  • 打赏
  • 举报
回复
客户端: IE-选项-高级-显示友好HTTP错误信息(不选中)
服务端:

SYMPTOMS
When a .asp file encounters an error, the following standard HTTP 500 error message is displayed instead of an error returned by the 500-100.asp file:
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
...
HTTP 500 - Internal server error
Internet Explorer
CAUSE
The .asp file is located on a non-default Web site that, by default, does not use the 500-100.asp file for error handling.

NOTE: This behavior is described in the Internet Information Services (IIS) product documentation at http://localhost/iishelp/iis/htm/core/iiprstop.htm.
RESOLUTION
To use the 500-100.asp file for error handling on the non-default Web site, Perform the following steps: 1. Start the Internet Service Manager (ISM), which loads the Internet Information Services snap-in for the Microsoft Management Console (MMC).
2. Right-click the appropriate Web site, click New, and then click Virtual Directory.
3. In the Virtual Directory Creation Wizard, click Next. In the Alias text box, type IISHelp, and then click Next.
4. When you are prompted for the path to the content directory, click Browse, select the WINNT\Help\IisHelp folder, and then click Next.
5. On the Access Permissions page, accept all the defaults, click Next, and then click Finish.
6. Right-click the Web site again, and then click Properties.
7. On the Custom Errors tab, select the 500;100 error line, and then click Edit Properties.
8. In the Message Type list box, select URL, and then type /iisHelp/common/500-100.asp in the URL text box.
9. Click OK twice to return to the ISM.

8,327

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 IIS
社区管理员
  • IIS
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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