[CLOSED] Error with HttpModules

  1. #1

    [CLOSED] Error with HttpModules

    Good Morning


    I have an application in asp.net with EXT.NET framework. Now I want to add XtraReports of DevExpress but I have a problem.


    If I configure the two httpModules my application does not work. It's like an instruction disables the other.


    Is there a way to configure the two httpModules? Is that possible?


    This is my web.config.

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
        <section name="themes" type="DevExpress.Web.ASPxClasses.ThemesConfigurationSection, DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
        <section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
      </configSections>
      <system.web>
       <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" >
           <assemblies>
            <add assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
            <add assembly="DevExpress.Data.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
            <add assembly="DevExpress.Utils.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
            <add assembly="DevExpress.XtraReports.v12.2.Extensions, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
            <add assembly="DevExpress.XtraReports.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
            <add assembly="DevExpress.XtraReports.v12.2.Web, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
            <add assembly="DevExpress.Web.ASPxThemes.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
          </assemblies>
        </compilation>
        <httpHandlers>
          <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
        </httpHandlers>
        <httpModules>
          <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"  />
          <add name="ASPxHttpHandlerModule" type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"/>
        </httpModules>
        <pages validateRequest="false" clientIDMode="AutoID">
          <controls>
            <add tagPrefix="dx" namespace="DevExpress.XtraReports.Web" assembly="DevExpress.XtraReports.v12.2.Web, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
            <add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" />
          </controls>
        </pages>
      </system.web>
      <system.webServer>
        <modules>
          <add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" />
          <add
            name="ScriptModule"
            preCondition="managedHandler"
            type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
            />
          <add
            name="DirectRequestModule"
            preCondition="managedHandler"
            type="Ext.Net.DirectRequestModule, Ext.Net"
            />
        </modules>
        <handlers>
          <add
            name="ScriptHandlerFactoryAppServices"
            verb="*"
            path="*_AppService.axd"
            preCondition="integratedMode"
            type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
            />
          <add
            name="DirectRequestHandler"
            verb="*"
            path="*/ext.axd"
            preCondition="integratedMode"
            type="Ext.Net.ResourceHandler"
            />
        </handlers>
      </system.webServer>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
            <bindingRedirect oldVersion="1.0.0.0-4.5.9" newVersion="4.5.10" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23" />
            <bindingRedirect oldVersion="0.0.0.0-2.0.1" newVersion="2.1.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Transformer.NET" publicKeyToken="e274d618e7c603a7" />
            <bindingRedirect oldVersion="0.0.0.0-2.0.0" newVersion="2.1.0" />
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    </configuration>

    Thanks
    Last edited by Daniil; Mar 12, 2013 at 5:34 AM. Reason: [CLOSED]
  2. #2
    Unfortunately, we don't know what that http module do (it's logic) therefore we cannot say about compatibiluty with Ext.Net http module
    Does DevExpress handle all aspx page request or particular only?
    Ext.Net module handles pages requests with ResourceManager only
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Replies: 0
    Last Post: Aug 09, 2012, 1:27 PM
  2. Replies: 17
    Last Post: Oct 12, 2011, 4:54 PM
  3. Replies: 4
    Last Post: Jan 25, 2011, 10:39 AM
  4. Replies: 1
    Last Post: Dec 23, 2010, 4:35 AM
  5. Replies: 2
    Last Post: Jul 29, 2009, 1:57 PM

Posting Permissions