System.Web.HttpException in asp.net mvc 2 on images and javascript files
Posted
by Rippo
on Stack Overflow
See other posts from Stack Overflow
or by Rippo
Published on 2010-05-08T07:41:51Z
Indexed on
2010/05/08
7:48 UTC
Read the original article
Hit count: 280
Hi I am getting the following errors reported by ELMAH on my asp.net mvc 2 site for javascript files, images etc.
System.Web.HttpException: The remote host closed the connection
I have done some research and it appears that the user/bot is clicking a link on the site before the page has fully loaded. Now this error never occurs on a controller action but always on a file that is on disk. e.g.
/Content/CmsImages/logo.png
/Content/CmsImages/MemberImages/Photo-001605.jpg
/Content/jquery.tickertype.js
So this means that all static files are being routed through the mvc pipeline.
What options do I have?
© Stack Overflow or respective owner