Top "Global-asax" questions

A special file in the ASP.

Global.asax not firing for .aspx pages in IIS7

We run a link redirection service which can handle links thrown at it in various formats. One of these formats …

asp.net iis-7 isapi-rewrite global-asax
How do I access properties from global.asax in some other page's code behind

Imagine I have a property defined in global.asax. public List<string> Roles { get { ... } set { ... } } I want to …

c# asp.net global-asax
Application_Start() event in global.asax

Hai guys, My website has thousands of users... I have implemented a background task of sending mails to every user …

c# asp.net global-asax
Why does Session_Start in Global.asax.cs cause performance problems?

When I create an empty Session_Start handler in Global.asax.cs it causes a significant hit when rendering pages …

asp.net global-asax
ASP.NET MVC doesn't call global.asax' EndRequest

I am trying to perform some actions at the end of every request. I changed the Application_Start() that is …

asp.net-mvc global-asax
Why HttpContext.Current.Session is null in Global.asax?

I'm using VS2010 and created a simple asp. web forms application, using Development Server to test it. I try to …

asp.net session-variables global-asax
global.asax Application_Error not firing

My global.asax seems not to be firing. I have: void Application_Error(object sender, EventArgs e) { // Code that runs …

asp.net global-asax
Why is global.asax missing from a Website Project

A couple of questions regarding the role of global.asax: Why is it not included in the Website Project in …

asp.net global-asax
Global.asax - Application_Error - How can I get Page data?

I have this code: using System.Configuration; void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError().GetBaseException(); string …

c# asp.net global-asax
Session State Not Available In This Context - In Global.asax

I am getting a 'session state not available in this context' error. The error is nested in the sender parameter …

session state global-asax