Top "Global-asax" questions

A special file in the ASP.

How to keep the Server.GetLastError after Response redirecting in MVC

In my Global.asax I have defined the Application_error method : protected void Application_Error(object sender, EventArgs e) { // Code …

asp.net-mvc model-view-controller response global-asax application-error
ASP.NET MVC routing conflict - null value for input variable

I'm at a loss as to why my routes are conflicting. I have these in my Global.asax file: routes.…

asp.net-mvc parameters routing null global-asax
ASP.Net Session_Start event not firing

I have an ASP.Net 2.0 application in which the Session_Start event is not firing in my Global.asax file. …

asp.net iis session global-asax
ASP.NET MVC app custom error pages not displaying in shared hosting environment

I'm having an issue with custom errors on an ASP.NET MVC app I've deployed on my shared host. I've …

asp.net-mvc error-handling global-asax shared-hosting
asp.net on session timeout redirect to home page

i have web app and on session timeout and user interaction on the page, this needs to redirect to home/…

asp.net session-timeout response.redirect global-asax server.transfer
Handling exceptions in global.asax ASP.NET MVC

I have code which is catching all exceptions in Global.asax protected void Application_Error(object sender, EventArgs e) { System.…

asp.net asp.net-mvc exception global-asax
Global 301 redirection from domain to www.domain

could i use the begin request of Global.asax to redirect everything, from mydomain.domain to www.mydomain.domain? If …

asp.net vb.net http-status-code-301 global-asax
HttpApplicationState not available in an MVC controller

I'm using MVC2 and VS2010 developing a website and need to use Application State global values. I can set a …

c# asp.net-mvc-2 controller global-variables global-asax
Application_Start not being hit in ASP.NET web app

I'm trying to debug something in the global.asax.cs file in an ASP.NET web app and have set …

asp.net visual-studio-2008 events web-applications global-asax
Auto-Start application / global.asax / wcf service when IIS7 starts automatically

Thank you for your time :) I'm sorry if this has been asked before, I just really need clarification. Environment: server 2008 …

wcf iis-7 global-asax