DirectRequestModule detection issues

  1. #1

    DirectRequestModule detection issues

    Hey all,
    I've been having trouble getting ext.net to detect that I have the DirectRequestModule installed in my web.config properly. It looks like the piece of code in the ext.net framework that renders out the client warning is:

    ResourceManager.cs - line 802
    if (this.scriptBuilder.Length > 0 || this.scriptFilesBuilder.Length > 0 || this.styleBuilder.Length > 0)
    {
        writer.Write(ResourceManager.WarningTemplate);    
    }
    It works fine if I put my ResourceManager in the head, but in the body it always gives me the warning. It looks like Lifecycle.cs runs BaseRenderAction and then RenderAction right after one another which causes this behavior since the on the second call it writes the warning when it detects that BaseRender already wrote it out. I don't understand how the second writing implies that the request module isn't present...

    This is very confusing code since there also is a HasModule function in the ResourceHandler.cs that seems to not be called anywhere and actually reads whether the module is in the web.config or not. Why does this code write out the warning when I have the module setup properly? It seems really strange to me that moving it to the head makes it work with no warning... is this a bug?

    My web.config is very straight forward, like this:

    <system.web>
            <httpHandlers>
                ...
                <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false"/>
            </httpHandlers>
    
            <httpModules>
                ...
                <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"/>
            </httpModules>
    ...
    And a page with just a ResourceManager and a Panel to test.

    Running the latest version, 1.0RC1, VS2008, IIS 5.1, XP SP3.
  2. #2
    Hi scott.moore,

    Thanks for taking the time to post these questions.

    I'll work this tonight and see if I can figure out what's going on/wrong.
    Geoffrey McGill
    Founder

Similar Threads

  1. TrackMouseOver Detection
    By cwolcott in forum 1.x Help
    Replies: 4
    Last Post: Jan 02, 2012, 6:59 PM
  2. Performance issues with 0.8.2
    By ywonline in forum 1.x Help
    Replies: 3
    Last Post: Oct 26, 2011, 4:43 PM
  3. Lazy load (or Scroll detection)
    By george in forum 1.x Help
    Replies: 0
    Last Post: Jan 01, 2009, 10:35 PM
  4. Tab Issues
    By dukefama in forum 1.x Help
    Replies: 1
    Last Post: Oct 14, 2008, 6:57 AM
  5. Tab and Issues
    By dukefama in forum 1.x Help
    Replies: 6
    Last Post: Jul 04, 2008, 2:47 AM

Posting Permissions