开发者

Refreshing page with runtime error

I wonder if refreshing page with runtime error will overload the web server. For example I did refreshed domain.com/default.asp?id=99999999999999999999999999999999999999999 page which generates following error:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'Cint'

/defau开发者_开发知识库lt.asp, line 9

This caused server not respond for all sites hosted on it or my IP was blocked for some time by the firewall.


It depends on what the rest of the code around that error looks like (which you can't see). You won't overload the server in the sense of DoS too many requests (flood) since those would be handled before the request gets to IIS to process on the server side.

But if the code where the page breaks does other processing based on that value it could crash IIS or the app pool. It could also be stuck waiting on a passed DB call and has to timeout before the server responds. It will either time out or reset itself and that is when you see the site functional again.

Either way the code or the website/server should be setup better to alleviate the problem. Hopefully the admins will figure that out when they investigate why the site keeps crashing due to your web hits ;)


Issue seems to be type casting. Try below steps.

Add this line on top of the page where you get this error:

"Option Explicit"

You can get more meaning ful error message:

This link provide details for each error message.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜