Is it possible to debug Global.asax?
I can’t debug global.asax file!
I can’t debug global.asax file!
I’m in the process of adding ASP.NET MVC code to a preexisting ASP.NET Webforms project. The various tutorials suggest adding routing to a method called from Application_Start() in Global.asax. My Global.asax already has an Application_OnStart(Object,EventArgs) method with some setup code.
I have this piece of code to handle the HttpRequestValidationException in my global.asax.cs file.
I’m using VS2010 and created a simple asp. web forms application, using Development Server to test it.
I try to store user data – queried from sql server – in the session, since I don’t want to access database in every request. I’m using the ‘Application_AuthenticateRequest’ and the ‘Session_Start’ methods.
First round:
AuthenticateRequest called. The following code ran:
Parser Error Description: An error occurred during the parsing of a
resource required to service this request. Please review the following
specific parse error details and modify your source file
appropriately.
I have a custom security principal object which I set in the global.asax for the current thread and all is well, no problems normally.
I am developing ASP.NET web application and for unhandled exception i am making use of
Global.asax file Where I wrote a logic to write the error logs as
In asp.net 2.0 web site, what is the best way of writing Error page. I have seen following section at following location:
could i use the begin request of Global.asax to redirect everything,
I’m using ASP.NET MVC and I need to set a session variable at Application_BeginRequest. The problem is that at this point the object HttpContext.Current.Session is always null.