如何让IIS7显示ASP错误的详细信息

2010年8月12日 没有评论

在网站目录下建立web.config文件,内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
</configuration>

这样就可以重新显示详细信息了。在Godaddy的虚拟主机上测试可行。

原文如下:

地址:http://internetoptimizers.com/2010/01/24/classic-asp-using-iis7-error-handling-500-internal-server-error-godaddy/

Classic ASP using IIS7 – Error Handling – 500 Internal Server

Howdy All,

This is a common problem I see lots of people running into since GoDaddy upgraded from IIS 6 to IIS 7.  The below story is a similar situation that I had while trying to work on a Classic ASP web site hosted at GoDaddy. I have included the answer/fix below.
Original Story:  I am with godaddy for webhosting right now. The have me using IIS7.
When I run my ASP page I get the error :

Error 500 :There is a problem with the resource you are looking for,
and it cannot be displayed.

Basically, there is an error in my code, however, it doesn’t tell me
the line number the error was found on. After searching the web I
found out how to turn on the more detailed error reporting… but you
have to do it on the webserver. I don’t have access to the webserver.

After spending allot of time chatting with godaddy, they claim I can
turn this on in the web.config file. I know this can be turn on for
ASP.NET in the web.config file… but as far as I know, not classic
asp.

OK…. Here is the web.config file I use that gives you the old school error handling data:

Step 1.  Open a text document.

Step 2.  Insert this code:

<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed"/>
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
</configuration>

Step 3.  Save the file as Web.Config

Step 4.  Upload the Web.Config file to your host web directory.

I hope this helps people avoid the few hours I was on the phone with GoDaddy technical support.  :)   Please let me know if this helps anyone out.

巽竂湾

2010年7月17日 没有评论

20100717387

分类: 杂志 标签:

GoodBye

2010年6月23日 没有评论

Good Year

GoodBye

分类: 随语 标签:

Firefly Theme Song

2010年5月26日 没有评论

Firefly Theme Song

Main Title Theme Written by: Joss Whedon
Performed by: Sonny Rhodes

Take my love, take my land
Take me where I cannot stand
I don’t care, I’m still free
You can’t take the sky from me
Take me out to the black
Tell them I ain’t comin’ back
Burn the land and boil the sea
You can’t take the sky from me
There’s no place I can be
Since I found Serenity
But you can’t take the sky from me…

http://fanhaijun.com/wp-content/uploads/music/Ballad_of_Serenity.mp3

分类: 音乐 标签: , ,

2010世界杯

2010年5月23日 2 条评论

20100523283

分类: 图片 标签:

停电 钢铁侠

2010年5月7日 没有评论

如题,现在电影院看电影了……

分类: 随语 标签:

I miss you

2010年4月13日 没有评论

I miss you

分类: 随语 标签:

不再去吃真功夫了!

2010年4月11日 没有评论

心太黑!比谁的事都贵,却那么少!还用个那么厚底的盘子,看起来以为好多!当然吃不饱,不过吃一口就饱了!难吃!早就说过不要去吃真功夫,自己这次食言,自己该死!去死吧!祝你早日关门大吉!

分类: 随语 标签:

2010-04-05 清明-中山

2010年4月7日 2 条评论

2010040418

分类: 图片 标签:

Wap可以访问了

2010年2月20日 没有评论

如题
地址:http://wap.fanhaijun.com

分类: 随语 标签: