RadUpload error

Thread is closed for posting
4 posts, 1 answers
  1. satya r
    satya r avatar
    8 posts
    Member since:
    Aug 2009

    Posted 14 Sep 2009 Link to this post

    When I  try to upload a document,I am getting this error.

    Radupload Ajax callback error.source url returned error :12031

    unknown
    .../../Telerik.RadUploadProgressHandler.ashx

     

    Did you register the RadUploadProgressHandler in web.config?


    Can someone please help me..I am using asp.net 3.5

  2. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 14 Sep 2009 Link to this post

    Hi,

    if you can access the UploadManager in DesignMode you can choose to register the things in Web.Config from the context menu.
    Else you have to change web.config by hand.
    I'll explain it with one of my current web.config
    Snippet created with CBEnhancer
    <httpHandlers>
       <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" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
       <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
       <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="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
     </httpHandlers>
     <httpModules>
       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
       <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
       <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
     </httpModules>
    The last line in httpHandlers and in httpModules are needed in your web.config.
    For IIS7 it should look like this:
    Snippet created with CBEnhancer
    <system.webServer>
       <validation validateIntegratedModeConfiguration="false" />
       <modules>
         <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" />
         <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
         <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
       </modules>
       <handlers>
         <remove name="WebServiceHandlerFactory-Integrated" />
         <remove name="ScriptHandlerFactory" />
         <remove name="ScriptHandlerFactoryAppServices" />
         <remove name="ScriptResource" />
         <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" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
         <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
         <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_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />
       </handlers>
    Important here also RadUploadProgessHandler and RadUploadModule.

    Regards
    Manfred
    PS: if this post was helpful please use "Mark as answer"
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. satya r
    satya r avatar
    8 posts
    Member since:
    Aug 2009

    Posted 18 Sep 2009 Link to this post

    Hi Manfred,

    Thanks for your reply. I use IIS 6 .Does the same httphandlers apply to them.
    Please let me know.
  5. Answer
    ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 18 Sep 2009 Link to this post

    Hi Satya,

    I posted a lot of code - although only 2 lines per "area" have to be added.
    The reason - make it easy for you to find the places.

    Your question about IIS 7 / 6.
    The first code post is for IIS 6.
    The second one for IIS 7 (as I wrote).

    You should add both entries (copy and paste 4 lines from here :)).
    Why?
    a.) Imagine you update (maybe in a few months) an your app crashes - will you find this post?
    b.) Doing this you have some kind of "complete template" you can use in future apps - no matter if the will run under 6 or 7

    Regards
    Manfred
    PS: if this post was helpful please use "Mark as answer"
Back to Top