IIS error The page cannot be found 404

<!-- end bloghead -->

%WINDIR%\System32\Logfiles (probably in a subfolder like W3SVC1 oranother folder start withW3SVC1)

Find the type 404 *** ***

other link: http://forums.iis.net/t/1147510.aspx

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

When accessing a file on a Microsoft IIS6 server, you may receive the following error:

The page cannot be found

[...]

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

You may receive that error even for files that you know darn well do exist at the exact location you specified.

But Microsoft, no fan of simplicity, hijacks the specific and well-defined 404 status code to cover any number of possible problems with the request, which have nothing whatsoever to do with whether the page could be found.

If you check your logfiles in %WINDIR\System32\Logfiles (probably in a subfolder like W3SVC1), you may see some lines that end like this:

 ... 404 3 50

So that’s a "404.3" error, which apparently means that "[a file] extension is not mapped to a known extention [sic] in the MIME Map property."

Notice that the error displayed in the browser is not only entirely useless, it’s actually false. Beyond that, it’s ridiculous that IIS fails to default to a sensible behavior like downloading the file anyway as a generic binary type, choosing instead to turn it into an error condition.

Just another way that Microsoft makes developers’ lives so much harder than they need to be...

<!-- end blogbody -->
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值