.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

Where does global.asax Live?

Posted By :Syed Shakeer Hussain     Posted Date :September 08, 2009    Points :10   Category :.NET Framework 
in IIS.

You can also find related Interview Question to Where does global.asax Live?  below: 

List the event handlers that can be included in Global.asax?

o Application start and end event handlers
o Session start and end event handlers
o Per-request event handlers
o Non-deterministic event handlers (More...)

Why is Global.asax is used for ?

Global.asax is used To implement application & Session level events (More...)

What event handlers can I include in Global.asax?

Application_Start,Application_End, Application_AcquireRequestState, Application_AuthenticateRequest, Application_AuthorizeRequest, Application_BeginRequest, Application_Disposed, Application_EndRequest, Application_Error, Application_PostRequestHandlerExecute, Application_PreRequestHandlerExecute,
Application_PreSendRequestContent, Application_PreSendRequestHeaders, Application_ReleaseRequestState, Application_ResolveRequestCache, Application_UpdateRequestCache, Session_Start,Session_End
You can optionally include "On" in any of method names. For example, you can name a BeginRequest event handler.Application_BeginRequest or Application_OnBeginRequest.You can also include event handlers in Global.asax for events fired by custom HTTP modules.Note that not all of the event handlers make sense for Web Services (they're designed for ASP.NET applications in general, whereas .NET XML Web Services are specialized instances of an ASP.NET app). For example, the Application_AuthenticateRequest and Application_AuthorizeRequest events are designed to be used with ASP.NET Forms authentication.

Difference Between Web.Config file and Global.asax ?

Web.Config file is used ....

1. To specify the application settings
2. To specify the session mechanism available to use for that application.
3. To Specify the Connection strings.
4. To Specify the authentication and authorization.
5. To Specify the http handlers.
6. To Specify different providers.

Global.asax file is used to specify the session and application event handlers.

List major events in GLOBAL.ASAX file ?

thus bypassing handler execution.
Web site. (More...)

What's the significance of "GLOBAL.ASAX" file ?

GLOBAL.ASAX allows us to executing ASP.NET application level events and setting application-level variables. (More...)

What is Global.asax used for?

implement application and session level events. (More...)

What is the difference between web.config and global.asax?

web.config:- It is a xml based file.
glbal.asax:- It is class file.

web.config:- It carries configuration data of the ASP.Net website.
global.asax:- It carries application events of the ASP.Net website.

web.config:- If there will be any change made on this file, we need to just save the new file with the ASP.Net website.
global.asax:- If there will be any change made on this file, we need to compile/rebuild the ASP.Net website. (More...)

How can I see what assemblies are installed in the global assembly cache?

The .NET Framework ships with a Windows shell extension for viewing the assembly cache. Navigating to % windir%\assembly with the Windows Explorer activates the viewer. (More...)

where is global assembly cache location in system?

The .NET Framework ships with a Windows shell extension for viewing the assembly cache. Navigating to % windir%\assembly with the Windows Explorer activates the viewer. (More...)

Can you place two .dll files with the same name in GAC (Global Assembly Cache)?

Yes, provided both have different versions.
GAC is a Folder that contains .dll that have strong name. So we can keep myproject.dll and myproject.dll two files into GAC with different version like and (More...)

Is the ASP.NET AJAX Control Toolkit(AjaxControlToolkit.dll) installed in the Global Assembly Cache?

No. You must copy the AjaxControlToolkit.dll assembly to the /Bin folder in your application. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend