[Webinar] Streamline your web hosting managementRegister Today


Global.asax events not firing

Posted on 2010-03-29
Medium Priority
Last Modified: 2012-05-09
Hi, I have an application developed in vs 2005. I have added Global.asax file but non of the events seem to fire. Then I created a brand new application with just a default page and added a global.asax file and events still dont fire. I also have vs 2008 installed and tried adding Global.asax and it seems to fire all the events. Any ideas why it wont be firing events in vs 2005 c#
Question by:mmalik15
LVL 11

Expert Comment

ID: 28961661
Check your website that under which version it is running and the correct folder it is locating.

Not the problem with VS 2005 or 2008.

LVL 22

Accepted Solution

Om Prakash earned 1500 total points
ID: 28961729
Try the following:
Remove global.asax from your project and add again and leave in on the root of the project.

Get more information:

Author Comment

ID: 28962028
thanks for the comments

rajva, i have added the global.asax file at the application root level and the version of .net framework is 2.0.
om prakash I have already tried it, mean deleted global.asax and re added it but it does not seem to work

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

LVL 11

Expert Comment

ID: 28962419
Hi mmalik15,

   Try running the application from VS 2005 itself by pressing F5 and see whether it fires or not.


Author Comment

ID: 28963160
It does not  make difference thanks
LVL 14

Expert Comment

ID: 28966563

Expert Comment

ID: 29001025
Can you paste your global.asax content here? Include everything (you can delete the contents within a function if you so wish), but dont exclude anything else. Also tell us what specific event are you trying to hit in the Global.asax?

Author Closing Comment

ID: 31708262

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Native ability to set a user account password via AD GPO was removed because the passwords can be easily decrypted by any authenticated user in the domain. Microsoft recommends LAPS as a replacement and I have written an article that does something …
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Suggested Courses

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question