Application_Start (global.asax) not firing on Windows 2003 Serverhttp://forums.asp.net/t/980754.aspx/1?Application_Start+global+asax+not+firing+on+Windows+2003+ServerFri, 21 Dec 2007 09:41:58 -05009807541253331http://forums.asp.net/p/980754/1253331.aspx/1?Application_Start+global+asax+not+firing+on+Windows+2003+ServerApplication_Start (global.asax) not firing on Windows 2003 Server &lt;div&gt;Hi&lt;/div&gt; &lt;div&gt;&nbsp;&lt;/div&gt; &lt;div&gt;I recently converted a project to a Web Application Project and the Application_Start event no longer fires in my global.asax.cs file on our live Windows 2003 Server. It all works fine when running under XP on my local dev machine though.&lt;/div&gt; &lt;div&gt;&nbsp;&lt;/div&gt; &lt;div&gt;I have tried adding a new global.asax using the Add-&gt;New menu option, and then copying the code over but this hasn't fixed the problem.&lt;/div&gt; &lt;div&gt;&nbsp;&lt;/div&gt; &lt;div&gt;Has anyone encountered this at all?&lt;/div&gt; &lt;div&gt;&nbsp;&lt;/div&gt; &lt;div&gt;Thanks&lt;/div&gt; &lt;div&gt;&nbsp;&lt;/div&gt; &lt;div&gt;Ben&lt;/div&gt; 2006-04-10T17:30:20-04:001254891http://forums.asp.net/p/980754/1254891.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p>Ben,</p> <p>We have not seen problem at all. Could you please send me (baijunATmicrosoftDOTcom) a sample application showing this problem?</p> <p>Baiju</p> <p>&nbsp;</p> 2006-04-11T21:17:49-04:001255240http://forums.asp.net/p/980754/1255240.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p>Baiju</p> <p>I will try and sort out a cut down version of my application for you later today.</p> <p>Ben</p> <p>&nbsp;</p> 2006-04-12T06:57:10-04:001265136http://forums.asp.net/p/980754/1265136.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server We had a similar problem with our deployment. We were building with nant, and the issue with us was that the &quot;Global.asax&quot; file was not being copied across when we deployed to windows server 2003 2006-04-22T11:29:39-04:001270249http://forums.asp.net/p/980754/1270249.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p>I'm having the same or a simlar problem.</p> <p>None of my global.asax events fire on an XP test box or the 2003 server. They fire on my development box that has VS2005. </p> <p>I've deleted and re-added global.asax and even declared a custom event handler that fires on my dev box but not the test box. I built and deployed, published and deployed, checked that the same dlls and global.asax are there, checked the inherits tag in global.asax, checked webconfig, checked ASP.NET setup tab in IIS. All to no avail.</p> <p>Any solutions yet?</p> 2006-04-27T18:42:31-04:001290278http://forums.asp.net/p/980754/1290278.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p>Changing the name of the Application_Start method to Application_<font color="#ff0000">On</font>Start fixed it for me.</p> <p>&nbsp;</p> <p>Cheers</p> 2006-05-19T02:00:14-04:001406779http://forums.asp.net/p/980754/1406779.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p>Thank you! That worked.</p> <p>Jeez this sucks though. I'm helping maintain some .NEt 2.0 software using this Web Application Project and now I have to name methods differently when using this vs. standard websites in .NET 2.0? Crappy...<br> </p> 2006-09-21T22:30:33-04:001407101http://forums.asp.net/p/980754/1407101.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p>&nbsp;</p> <p>it really amazing to find so much of many problems and appericate people who are able to figure out the solution.</p> <p>&nbsp;</p> 2006-09-22T06:57:25-04:001664780http://forums.asp.net/p/980754/1664780.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p>I was having the exact same issue and was able to fix it by removing the PrecompiledApp.config file that was in the root directory of the web site on our test server.&nbsp; I'm guessing that file was a holdover from when the project was a Web Site project.&nbsp; I recently converted it over to a Web App project.&nbsp; So if you are building a Web App project, make sure you DON'T have a PrecompiledApp.config file on your target server.</p> <p>&nbsp;</p> 2007-04-13T15:39:13-04:001774773http://forums.asp.net/p/980754/1774773.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p>&nbsp;application_start evevt &nbsp;of Global.asax&nbsp;in asp.net 2.0 web application&nbsp; is working on my &nbsp;local machine on windows XP , and Visual Studio 2005 but this event is not fired on windows server 2003.</p> 2007-06-27T08:49:04-04:001936805http://forums.asp.net/p/980754/1936805.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p>none of the solutions worked for me. </p> <p>What is the correct way of deploying a website having a global.asax file?</p> <p>&nbsp;Could it be because of the virtualpath and filedep found below in the compiled version of global.asax file?</p> <p>this paths are related to my local and not related to my deployment server. So why get these paths deployed this way?</p> <p>there is no path as: &quot;/proj/global.asax&quot; in deployment server. proj is the name of the local folder where I work for the project.</p> <p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br> &lt;preserve resultType=&quot;8&quot; virtualPath=&quot;/proj/global.asax&quot; hash=&quot;ffffffffe8c669c9&quot; filehash=&quot;29d0de3dd91a&quot; flags=&quot;150000&quot; assembly=&quot;App_global.asax&quot; type=&quot;ASP.global_asax&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &lt;filedeps&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filedep name=&quot;/proj/global.asax&quot; /&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/filedeps&gt;<br> &lt;/preserve&gt;&nbsp;</p> <p>-----</p> <p>the code below yields :&nbsp;<br> ApplicationInstance: ASP.global_asax&nbsp;<br> &nbsp;</p> <p>protected void Page_Load(object sender, EventArgs e) <br> &nbsp; &nbsp; { <br> &nbsp; &nbsp; &nbsp; &nbsp; Response.Write(&quot;&lt;br/&gt;ApplicationInstance: &quot; &#43; <br> Context.ApplicationInstance.GetType().FullName); <br> &nbsp; &nbsp; } </p> <p>&nbsp;</p> <p>it should not be so hard.</p> 2007-10-02T14:32:05-04:002072233http://forums.asp.net/p/980754/2072233.aspx/1?Re+Application_Start+global+asax+not+firing+on+Windows+2003+ServerRe: Application_Start (global.asax) not firing on Windows 2003 Server <p><em>Hi,</em></p> <p>I have exactly the same problem, using&nbsp;windows 2003 (Server).</p> <p>In loval -&gt; Windows XP &#43; Visual Studio 2005 &#43; .NET 2.0 &#43; Web&nbsp;Application with Global.asax.</p> <p>I need the global.asax to manage the error logging, but in local all is ok and not after the deployment.</p> <p>My global.asax is never called :(</p> <p>Thanks in advance for any help.</p> <p>Fix&nbsp;&nbsp;</p> <p>&nbsp;</p> 2007-12-21T09:41:58-05:00