Top "Global-asax" questions

A special file in the ASP.

classic asp/asp.net website - global.asa not working

I've recently been given a website written in classic asp to configure and set up - although it also appears …

asp-classic asp.net-2.0 global-asax global.asa
Global.asax.cs and Static variable

In a WCF Service, I need to create a variable which should be accessible anytime from anywhere. All methods of …

c# asp.net asp.net-4.0 global-asax
ASP.NET customErrors with mode=remoteOnly and global.asax handling exceptions

I have custom errors set in the web config file as follows: <customErrors mode="RemoteOnly" defaultRedirect="GenericError.aspx" /> …

asp.net redirect exception custom-errors global-asax
could not load type MvcApplication on Global.asax

I copied my MVC3 Razor website using FTP. However, when I type the URL I get an error: "Could not …

asp.net-mvc asp.net-mvc-3 deployment global-asax
Session state is not available in this context in Global.asax

I am getting and error message when i'm trying to get Session value in Global.aspx: I have tried another …

c# asp.net session global-asax application-error
C# ASP.NET: how to access cache when no HttpContext.Current is available (is null)?

During Application_End() in Global.aspx, HttpContext.Current is null. I still want to be able to access cache - …

c# asp.net caching httprequest global-asax
Unhandled Exceptions with Global.asax

I am emailing unhandled exception details from global.asax. How can I get the path and/or filename of the …

asp.net exception exception-handling global-asax
Access current domain name on Application_Start

Normally to access the current domain name e.g where the site is hosted I do something like string rURL = …

c# .net global-asax
HTTPModules and Global.asax -- ASP.NET Page Life cycle

I have read the beautiful article about Asp.Net Page life Cycle http://www.codeproject.com/Articles/73728/ASP-NET-Application-and-Page-Life-Cycle. My understanding …

asp.net httphandler httpmodule global-asax
using PreSendRequestHeaders Event in global.asax

I tried to assign the PreSendRequestHeaders Event in the global.asax file in the "Application_Start" method. But this does …

c# asp.net iis global-asax