<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.asp.net/15.aspx</link><description>The perfect forum for ASP.NET novices. No question too simple! &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=21&amp;amp;c=17" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: When does Application_Start get called?</title><link>http://forums.asp.net/thread/1603840.aspx</link><pubDate>Sun, 04 Mar 2007 02:18:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1603840</guid><dc:creator>flanakin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1603840.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1603840</wfw:commentRss><description>&lt;p&gt;As the others mentioned, Application_Start is called when the application is first started or, more specifically, when the application receives the first request. Typically, this only happens once, but there are some events which may require the application to restart, such as a change to the web.config file, as mentioned before. To answer your second question, yes, the event is fired before you even get to the UI of the app. If you're not seeing this behavior, make sure your breakpoints are setup appropriately. &lt;/p&gt;</description></item><item><title>Re: When does Application_Start get called?</title><link>http://forums.asp.net/thread/1603667.aspx</link><pubDate>Sat, 03 Mar 2007 18:31:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1603667</guid><dc:creator>Haissam</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1603667.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1603667</wfw:commentRss><description>&lt;p&gt;Check the link below&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://aspalliance.com/1114_Understanding_the_Globalasax_file" target=_blank&gt;Understanding Global.asax&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HC&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: When does Application_Start get called?</title><link>http://forums.asp.net/thread/1603663.aspx</link><pubDate>Sat, 03 Mar 2007 18:24:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1603663</guid><dc:creator>Girijesh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1603663.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1603663</wfw:commentRss><description>&lt;p&gt;Application_Start event runs only once when the application first time runs. &lt;/p&gt;
&lt;p&gt;It run again whenever the application restarts, like change in webconfig etc.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>When does Application_Start get called?</title><link>http://forums.asp.net/thread/1603658.aspx</link><pubDate>Sat, 03 Mar 2007 18:14:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1603658</guid><dc:creator>newbie06</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1603658.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1603658</wfw:commentRss><description>&lt;p&gt;When does Application_Start get called? I have the following code in the Application_Start function and but it does not seem to run. I would like to Flush the cache on application start up.&lt;/p&gt;
&lt;p&gt;When I debug my program in Visual Studio shouldn't the Application_Start&amp;nbsp;event run everytime I debug???&lt;/p&gt;&lt;font size=2&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;void&lt;/font&gt;&lt;font size=2&gt; Application_Start(&lt;/font&gt;&lt;font color=#008080 size=2&gt;Object&lt;/font&gt;&lt;font size=2&gt; sender, &lt;/font&gt;&lt;font color=#008080 size=2&gt;EventArgs&lt;/font&gt;&lt;font size=2&gt; e) {
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#008000 size=2&gt;// Code that runs on application startup&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#008000 size=2&gt;//Flushes the cache on application startup.&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;Microsoft.Practices.EnterpriseLibrary.Caching.&lt;/p&gt;&lt;/font&gt;&lt;font color=#008080 size=2&gt;CacheManager&lt;/font&gt;&lt;font size=2&gt; c = Microsoft.Practices.EnterpriseLibrary.Caching.&lt;/font&gt;&lt;font color=#008080 size=2&gt;CacheFactory&lt;/font&gt;&lt;font size=2&gt;.GetCacheManager();
&lt;p&gt;c.Flush();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>