423,832 Members | 1,878 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,832 IT Pros & Developers. It's quick & easy.

add global.asax to console app

P: 2
Hi, is it possible to add global.asax page to a console application?
please replly.....
Dec 5 '07 #1
Share this Question
Share on Google+
5 Replies


Plater
Expert 5K+
P: 7,872
To what benefit?
global.asax is for web applications, only really contains startup/shutdown functions, which you have ready access to in your program anyway.
Dec 5 '07 #2

P: 2
thanks for your reply.
I have to log errors into db. i thought it can done in Application_Error function
Dec 7 '07 #3

debasisdas
Expert 5K+
P: 8,127
If you understand what is the use of global.asax ,would never had posted this silly question.
Dec 7 '07 #4

Plater
Expert 5K+
P: 7,872
thanks for your reply.
I have to log errors into db. i thought it can done in Application_Error function
Right.
It's a better practice to catch errors where they are generated, but you could always stick the Application.Run() function in a try/catch block too.
Dec 7 '07 #5

P: 1
@debasisdas
Don't worry, about such responses "NO question is silly" keep asking.
2 Weeks Ago #6

Post your reply

Sign in to post your reply or Sign up for a free account.