Resources handler with Virtual Directory

  1. #1

    Resources handler with Virtual Directory

    Hi,

    If I deploy my project in a virtual directory I always have the same error:

    Line: 1
    Error: 'Ext' is undefined.

    I have my web.config defined in this way:

    <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>
    </system.web>

    <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
    <add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net"/>
    </modules>
    <handlers>
    <add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler"/>
    </handlers>
    </system.webServer>

    I have the same error in both IIS6 and IIS7.

    How can I solve this problem?

    Thanks in advance,

    Dominik.
  2. #2
    Hi all,

    Well, it was because I remove runat="server" from head element.

    I want to use '<%= %>' tag at header, but with runat="server" attribute it always gives error.

Similar Threads

  1. Return User Active Directory
    By pc.cotemig in forum 1.x Help
    Replies: 0
    Last Post: Oct 04, 2011, 7:37 PM
  2. problem install on iis with virtual directory
    By springtg in forum 1.x Help
    Replies: 0
    Last Post: Jun 11, 2011, 9:20 AM
  3. [CLOSED] [1.0] FileUpload and Directory
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 07, 2011, 7:30 AM
  4. Replies: 0
    Last Post: Jul 22, 2010, 1:05 PM
  5. Virtual Directory for SVN Coolite.Examples website
    By jchau in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Nov 25, 2008, 8:45 PM

Posting Permissions