<?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>Alex James Brown &#187; global.asax</title>
	<atom:link href="http://www.alexjamesbrown.com/tags/globalasax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexjamesbrown.com</link>
	<description>My Words. By Me.</description>
	<lastBuildDate>Wed, 04 Jan 2012 01:02:08 +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>Session_Start event not firing</title>
		<link>http://www.alexjamesbrown.com/development/session_start-event-not-firing/</link>
		<comments>http://www.alexjamesbrown.com/development/session_start-event-not-firing/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 17:16:28 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[global.asax]]></category>

		<guid isPermaLink="false">http://blog.alexjamesbrown.com/?p=63</guid>
		<description><![CDATA[I&#8217;ve been scratching my head about this one for sometime&#8230; As I&#8217;m sure your aware (or you wouldn&#8217;t be reading this) in the Global.asax file, we have the following method: ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been scratching my head about this one for sometime&#8230;<br />
As I&#8217;m sure your aware (or you wouldn&#8217;t be reading this) in the <a href="http://en.wikipedia.org/wiki/Global.asax" target="_blank">Global.asax</a> file, we have the following method:</p>
<pre lang="Csharp">protected void Session_Start(object sender, EventArgs e)
{
}</pre>
<p>Placing a breakpoint on this method, I attached the debugger, ran up my application, and the breakpoint was not hit&#8230;</p>
<p>What I would of expected to happen would be the debugger break just as the page is loaded. It didn&#8217;t.</p>
<p>When my application builds, I have post-build events that copy required files (.aspx, bin dir etc&#8230;) to a separate directory, and i use a custom web server for the project (rather than the standard, local IIS Web server)</p>
<p>What this means is that the Global.asax file needs to be in my output directory.</p>
<p>Nothing in the &#8220;Global&#8221; class will run without the presence of the Global.asax file.</p>
<p>My post-build events did not copy *.asax files.</p>
<p>Upon adding this line, the issue was fixed, and my breakpoint is now hit.</pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alexjamesbrown.com/development/session_start-event-not-firing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

