This is a migrated thread and some comments may be shown as answers.

RadUpload Ajax Callback error. Source url was not found

6 Answers 499 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Vincent Micale
Top achievements
Rank 1
Vincent Micale asked on 09 Jun 2010, 09:17 PM
We are moving our .NET application to a new Windows 2008 server. When we move the code, we get this error:

RadUpload Ajax Callback error. Source url was not found

/Telerik.RadUploadProgressHandler.aspx?RadUrid=b157....

I searched your knowledgebase and have confirmed that our web.config does have these entries:

<appSettings>
 <add key="Telerik.RadUpload.ChunkSize" value="5000" />
 </appSettings>
<system.web>
    <httpHandlers>
      <remove verb="*" path="*.asmx"/>
<add verb="*" path="Telerik.RadUploadProgressHandler.aspx"
        type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
       </httpHandlers>

    <httpModules>
      <add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2"/>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </httpModules>
</appSettings>

6 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 10 Jun 2010, 11:31 AM
Hello Vincent,

In IIS7 HttpHandlers are registered in a different way in the web.config. Please refer to this help article.

Kind regards,
Dimitar Milushev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Vincent Micale
Top achievements
Rank 1
answered on 18 Jun 2010, 09:28 PM
Thank you Dimitar. I did see that article and changing the web.config has not worked. Here is the error when we try to upload:

RadUpload Ajax callback error. Source url was not found:

/Telerik.RadUploadProgressHandler.aspx?RadUrid=b157....

Here is what we have in the web.config:

<system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>
<add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />
 </handlers>
  </system.webServer>

We are using the RadUpload.net2.dll so we tried changing type from Telerik.Web.UI.RadUploadProgressHandler to Telerik.Web.UI.RadUploadProgressHandler,RadUpload.Net2 but that didn't work either.

Our application pool is running in classic mode.
0
Dimitar Milushev
Telerik team
answered on 23 Jun 2010, 11:19 AM
Hello Vincent,

I am sorry, I didn't realize that you were using the "Classic" RadUpload for ASP.NET while the article I linked is for the newer RadControls for ASP.NET AJAX.

The proper type in your case is type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" for the handler and type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" for the module.

Regards,
Dimitar Milushev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Anita
Top achievements
Rank 1
answered on 12 May 2011, 10:31 PM
Hello. We are experiencing a similar issue. We have a third party application which uses RadUpload and which we are trying to run on an IIS 7 site in integrated mode. We have verified that the component is registered (by following steps at this URL http://www.telerik.com/support/kb/aspnet-ajax/upload/906-ajax-callback-error.aspx). We have also verified that we have the proper tags in the <system.webServer> section (see below). However we get the attached error message when attempting to upload.

The <system.webServer> tag is surrounded by a <location path="." inheritInChildApplications="false"> tag. This is to prevent a sub-virtual directory from inheriting modules and handlers noted in system.webServer. Has anyone else reported an issue with this configuration and if so, do you have any work arounds? Thanks!
0
Peter Filipov
Telerik team
answered on 18 May 2011, 08:35 AM
Hi Anita,

Have you tried Dimitar's approach to resolve the issue? Which version of the controls are you using?
To avoid inconsistency of the thread please open a new support ticket regarding your issue.

Best wishes,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Anita
Top achievements
Rank 1
answered on 18 May 2011, 01:38 PM
THIS IS RESOLVED
==========================
Yes, we had registered the control properly in the web.config. The issue was the fact that we surrounded the <system.webServer> tag with a <location path="." inheritInChildApplications="false"> tag. We had to do this to avoid isues with a virtual sub-directory beneath our root application.

To resolve, I registered the handler via another location tag that pointed to the path the application (SumTotal) expected to find RadUpload. The code is below.

<location path="app/experience/upload/Telerik.RadUploadProgressHandler.ashx">

    <system.webServer>

      <handlers>

      <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" />

      </handlers>

    </system.webServer>

  </location>

Thanks for taking the time to reply.

Anita K.
Tags
Upload (Obsolete)
Asked by
Vincent Micale
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Vincent Micale
Top achievements
Rank 1
Anita
Top achievements
Rank 1
Peter Filipov
Telerik team
Share this question
or