Configuration Error - RadUploadHttpModule

Thread is closed for posting
4 posts, 0 answers
  1. Jibber4568
    Jibber4568 avatar
    28 posts
    Member since:
    Jul 2011

    Posted 22 Nov 2011 Link to this post

    Hi guys,

    We have recently upgraded to the latest rad controls as well as .net 4.

    Most things are working fine however there appears to be an issue with the upload module. Upon click of the button I am returned the error:

    Configuration Error 

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load type 'Telerik.Web.UI.RadUploadHttpModule'. (C:\inetpub\wwwroot\..............\web.config line 80)

    I have tried making various changes to the web.config but can't seem to get anything to resolve the issue. 

    Below are the system.web and system.webserver sections from the web.config file. If you could point out where we are going wrong it would be greatly appreciated.

    Thanks.

      <system.web>
        <compilation debug="true" targetFramework="4.0" />
     
        <authentication mode="Forms">
          <forms name=".ASPXAUTH" timeout="60" />
        </authentication>
     
        <authorization>
          <allow users="*" />
        </authorization>
     
        <httpModules>
          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule,System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35" />
        </httpModules>
        <httpHandlers>
          <add verb="POST,GET" path="csharpwrapper/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
          <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />
          <remove verb="*" path="*.asmx" />
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
          <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
          <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.2.1018.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>
     
        <httpRuntime executionTimeout="240000" maxRequestLength="102400" requestValidationMode="2.0" />   
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
      </system.web>
     
       
      <system.webServer>
     
        <modules runAllManagedModulesForAllRequests="true">
          <remove name="ScriptModule" />
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </modules>
        <handlers>
          <remove name="dot open" />
          <remove name="Telerik_Web_UI_DialogHandler_aspx" />
          <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
          <remove name="WebServiceHandlerFactory-Integrated" />
          <remove name="ScriptHandlerFactory" />
          <remove name="ScriptHandlerFactoryAppServices" />
          <remove name="ScriptResource" />
          <remove name="Telerik_Web_UI_WebResource_axd" />
          <add name="dot open" path="*.open" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <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="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
          <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
        </handlers>
         <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="100000000" />
            </requestFiltering>
         </security>     
      </system.webServer>
    </configuration>

  2. Rogério
    Rogério avatar
    2 posts
    Member since:
    Nov 2011

    Posted 22 Nov 2011 Link to this post

    Please, let's do a test, change the value in the tag like this:

      <httpRuntime maxRequestLength="102400" executionTimeout="3600" />

    How big do you need to release the maximum upload?

    This article can help a lot for this case:

    http://www.telerik.com/help/aspnet-ajax/upload-uploading-large-files.html

    Any questions, just re-enter,

    Tks
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jibber4568
    Jibber4568 avatar
    28 posts
    Member since:
    Jul 2011

    Posted 23 Nov 2011 Link to this post

    Thanks for that. I made the change but it didn't make any difference.

    I'm not actually getting to the point at which I can upload a file, this is simply clicking on the button to load the uploader.

    Thanks.
  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 25 Nov 2011 Link to this post

    Hi Jibber4568,

    You should register your RadUploadHttpModule in the <modules> section (within <system.webServer> section) of your web.config file.

    Please refer to the following help articles here and here regarding the necessary registrations in the web config which have to be made.

    Greetings,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top