« Previous Next »

Thread: How does IIS7 decide when to invoke…?

Last post 06-02-2009 6:59 PM by fabioy. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 05-12-2009, 5:31 PM

    How does IIS7 decide when to invoke…?

    Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} Hello,

     

    Q1) Assuming we register Http module with IIS7 in order to be used for non-Asp.Net application ( say some Java app ) , when in the request’s life cycle will IIS7 invoke this module? Thus, how will IIS7 decide when to invoke it?

     

     

    Q2)  In order to register Http module with IIS7, we need to put it in GAC.

    But is it also possible to register Http module or Http handler without putting it in GAC?

     

     

    thanx

  • 06-02-2009, 6:59 PM In reply to

    • fabioy
    • Top 500 Contributor
    • Joined on 05-06-2008, 7:04 PM
    • Posts 17

    Re: How does IIS7 decide when to invoke…?

    A1) If it's a module (and not a request handler), then the module will be loaded and run at the time a request arrives.  Note, though, that this is also dependent upon the "precondition" set for the module.  Take a look at this entry for more info: http://blogs.iis.net/thomad/archive/2006/11/04/precondition-what.aspx

    A2) It is possible to have a module or request handler that is NOT in the GAC.  With the integration with ASP.Net, you can have the assembly be in the "bin" directory of the app, or be compiled on the fly by putting it into the "App_Code" directory.  Just be careful that you put the proper type info in the "<modules>" section of the app's web.config file.

    Hope this helps.

    -- Fabio Yeon
    Senior Software Design Engineer
    IIS
Page 1 of 1 (2 items)
Microsoft Communities