<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DotBert &#187; Application_Error</title>
	<atom:link href="http://dotbert.loedeman.nl/category/application_error/feed" rel="self" type="application/rss+xml" />
	<link>http://dotbert.loedeman.nl</link>
	<description>.NET thoughts by Bert Loedeman</description>
	<lastBuildDate>Wed, 19 Oct 2011 07:57:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>HttpException: File does not exist</title>
		<link>http://dotbert.loedeman.nl/httpexception-file-does-not-exist</link>
		<comments>http://dotbert.loedeman.nl/httpexception-file-does-not-exist#comments</comments>
		<pubDate>Tue, 13 May 2008 11:24:00 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Application_Error]]></category>
		<category><![CDATA[Error -2147467259]]></category>
		<category><![CDATA[HttpException]]></category>
		<category><![CDATA[System.Web.HttpException]]></category>

		<guid isPermaLink="false">http://www.loedeman.net/wordpress/?p=16</guid>
		<description><![CDATA[Since some time I happened to get a nasty exception in the global.asax Application_Error method. Exception details are below:Type : System.Web.HttpException Message : File does not exist. Source : System.Web ErrorCode : -2147467259 Data : System.Collections.ListDictionaryInternal TargetSite : Void ProcessRequestInternal(System.Web.HttpContext) Stack Trace : at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context) at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() [...]]]></description>
			<content:encoded><![CDATA[<p>Since some time I happened to get a nasty exception in the global.asax Application_Error method. Exception details are below:<br /><code><br />Type        : System.Web.HttpException <br />Message     : File does not exist. <br />Source      : System.Web <br />ErrorCode   : -2147467259 <br />Data        : System.Collections.ListDictionaryInternal <br />TargetSite  : Void ProcessRequestInternal(System.Web.HttpContext) <br />Stack Trace : <br />at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context) <br />at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) <br />at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() <br />at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&#038; completedSynchronously)<br /></code><br />After some hard time trying to resolve this bug, I finally figured out what the problem was. The problem related to this exception is an HttpRequest to a non-existing source, not being the main request, but something like an image or iframe source. In my case, it was an iframe source loaded with a non-existing document.</p>
<p>To resolve this exception at your place, add the following to your Watch window: <code>((HttpApplication)sender).Context.Request.Url</code> and set a breakpoint on the Application_Error method. This way, the exception will clarify itself a lot (it definitely did for me).</p>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/httpexception-file-does-not-exist/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

