[CLOSED] DirectRequestModule problem when switching to svn dll

Page 1 of 3 123 LastLast
  1. #1

    [CLOSED] DirectRequestModule problem when switching to svn dll

    Hi there,

    I just switched to the svn dll, which I did in excluding the nuget
    ext management and adding the newly compiled dll to the project.
    So I had a running application before, so the config was fine.
    After the dll change I get this and it is definitely there in the
    web.config ???????


    The web.config file for this project is missing the required DirectRequestModule.

    Example

    <system.web>
    <httpModules>
    <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
    </httpModules>
    </system.web>

    More information available at "Getting Started".
    Am I missing sth. ?

    Regards,
    Holger

    PS: ext.net trunk from svn, VS2012 Win7 64, MVC4, Razor
    Last edited by Daniil; Sep 18, 2012 at 11:28 AM. Reason: [CLOSED]
  2. #2
    Hi @zwf,

    Please clarify is this thing in Web.config? Could you demonstrate your Web.config?

    ext.net trunk from svn
    We would recommend to update from the 2.1 branch.
    http://svn.ext.net/premium/branches/2.1/

    Currently, there are the latest sources, not in trunk.
  3. #3
    Hi,
    web.config in the view folder.
    I'm just tryin the 2.1 branch.

    <?xml version="1.0"?>
    
    <configuration>
      <configSections>
        <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
          <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
        </sectionGroup>
      </configSections>
    
      <system.web.webPages.razor>
        <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <pages pageBaseType="System.Web.Mvc.WebViewPage">
          <namespaces>
            <add namespace="System.Web.Mvc" />
            <add namespace="System.Web.Mvc.Ajax" />
            <add namespace="System.Web.Mvc.Html" />
            <add namespace="System.Web.Optimization"/>
            <add namespace="System.Web.Routing" />
            <add namespace="Ext.Net" />
            <add namespace="Ext.Net.MVC" />
          </namespaces>
        </pages>
      </system.web.webPages.razor>
    
      <appSettings>
        <add key="webpages:Enabled" value="false" />
      </appSettings>
    
      <system.web>
        <httpHandlers>
          <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
          <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false"/>
        </httpHandlers>
        <httpModules>
          <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"/>
        </httpModules>
    
        <!--
            Enabling request validation in view pages would cause validation to occur
            after the input has already been processed by the controller. By default
            MVC performs request validation before a controller processes the input.
            To change this behavior apply the ValidateInputAttribute to a
            controller or action.
        -->
        <pages
            validateRequest="false"
            pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
            pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
            userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <controls>
            <add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
          </controls>
        </pages>
      </system.web>
    
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
    
        <handlers>
          <remove name="BlockViewHandler"/>
          <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
        </handlers>
      </system.webServer>
    </configuration>
    Regards,
    Holger
  4. #4
    Do you use IIS7?
  5. #5
    Vladimir means that if you use IIS 7, then you should add this into <system.webServer> section.
    <modules>
        <add 
            name="DirectRequestModule" 
            preCondition="managedHandler" 
            type="Ext.Net.DirectRequestModule, Ext.Net" 
            />
    </modules>
    As demonstrated here:
    https://examples2.ext.net/#/Getting_...uments/README/
  6. #6

    switched to branch 2.1, now ArrayTypeMismatchException in MVCDirectMethod.cs

    btw. I'm using IIS Express shipped with VS2012.


    as mentioned above.

    The problem with
    DirectRequestModule
    is gone, but when I start my app I get the above error.

    It's
    parameter item shouldn't be null
    and ArrayTypeMismatchException

    UrlHelper urlHelper = new UrlHelper(viewContext.RequestContext, RouteTable.Routes);
    in

            
    public static string BuildProxy(ViewContext viewContext)
            {
                Dictionary<string, Dictionary<string, List<MvcDirectMethod>>> methods = MvcDirectMethod.GetGroupedMethods(viewContext);
                StringBuilder sb = new StringBuilder(256);
    
                UrlHelper urlHelper = new UrlHelper(viewContext.RequestContext, RouteTable.Routes);
    
                foreach (KeyValuePair<string, Dictionary<string, List<MvcDirectMethod>>> ns in methods)
                {
                    string nsName = ns.Key;
    
                    sb.AppendFormat("Ext.ns(\"{0}\");", nsName);
    
                    Dictionary<string, List<MvcDirectMethod>> scopes = ns.Value;
    
                    sb.Append("Ext.apply(".ConcatWith(nsName, ", { "));
    
                    foreach (KeyValuePair<string, List<MvcDirectMethod>> scope in scopes)
                    {
                        string scopeName = scope.Key;
                        List<MvcDirectMethod> directMethods = scope.Value;
    .......
    in MvcDirectMethod.cs package Ext.Net.MVC


    Regards,
    Holger
  7. #7
    Can you provide a sample to reproduce that exception?
  8. #8

    If you send me your email, I'll send you the project

    Or a FTP to upload.
    Use itreppert@itreppert.de
    It's about 13 MB compressed with ARC
  9. #9
    So,

    I tested the project under VS2010 Ultimate and it works with
    the svn version.
    No way getting it to work under VS2012.
    It works fine with the trunk version, so sth. seems to have been
    gone wrong......
    Would be nice to have a version that works with VS2012 again.

    Regards,
    Holger
  10. #10
    Hi Holger,

    Please clarify did correction "assemblyBinding" not help?
Page 1 of 3 123 LastLast

Similar Threads

  1. GridPanel, Store and switching datasources
    By HansWapenaar in forum 1.x Help
    Replies: 1
    Last Post: Jun 04, 2012, 8:48 PM
  2. Replies: 0
    Last Post: May 30, 2012, 8:44 PM
  3. DirectRequestModule detection issues
    By scott.moore in forum 1.x Help
    Replies: 1
    Last Post: Dec 02, 2010, 10:59 PM
  4. [CLOSED] Validate form before switching tabs
    By CMA in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 05, 2010, 3:08 AM
  5. [CLOSED] switching themes on controls
    By LeeTheGreek in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 17, 2009, 5:12 AM

Posting Permissions