asp.net - HttpModules Setting Being Ignored? -


I'm upgrading an old webform application. However, this custom theme is not picking up.

My web.config file has the following:

  & lt; System.web & gt; & Lt; HttpModules & gt; & Lt; Add name = "ThemeManager" type = "softcrack.medicorp.memanager" /> & Lt; / HttpModules & gt; & Lt; /system.web>  

And here is part of the class definition:

  public class theme manager: IHttpModule {const string _defaultTheme = "BlueSky"; Public Theme Manager () {} Public Zero Init (HTTP Application Application) {app.PreRequestHandlerExecute + = New Event Handler (Context_prepressAndhandler Xacute); } Zero Context_PreRequestHandlerExecute (Object Sender, EventArgs E) {If (HttpContext.Current.CurrentHandler is Page & amp; http Consort. Current Sessions! = Faucet) {page page = (page) Present. Current handler; // Note: To override the theme set here, set theme = faucet to the page of the preenet event if (page! = Null & amp;; http; concert.content.requisite.phillPath.company ("Help /")) { ...  

But it appears that the class never starts. I can set breakpoints in the constructor, Init () handler, or PreRequestHandlerExecute () handler, and none of those breakpoints are hit.

Can anyone remember what works at a time?

Note: I do not know that it does not matter, but I & lt; I also specify the pages. Rendering Compatibility Version = "3.5" Client Idode = "AutoID" / & Gt; in my web.config file

launches the web .config syntax IIS 7.0 integrated mode (which also integrates the integrated mode Means) has changed for.

Instead of the configuration in my question, it should be done this way.

  & lt; System.webServer & gt; & Lt; Module & gt; & Lt; Add name = "ThemeManager" type = "softcrack.medicorp.memanager" /> & Lt; / Module & gt; & Lt; /system.webServer>  

It's fixed for me.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -