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

[Solved] RadUpload Ajax callback error. Source url returned invalid content.

3 Answers 472 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 10 May 2009, 01:14 PM
Hi!

First, I tried to do step by step in this tutorial, but I am also facing the same problem, even if I try to do all the steps for IIS 6 and IIS7. (I have IIS 7). In addition, I was looking for the same problem on the forum, but it did not help me.

Now I can download the files, but the progress bar does not work, and I get this error. But if I remove this code, I do not get an error, the progress bar starts ... but the files are not uploaded to the server.

I don't know what to do, please help me.

My part of web.config:

<httpHandlers>
            <remove path="*.asmx" verb="*"/>
            <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
            <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
            <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
            <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=5798b630e02d74fc" validate="false"/>
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=5798b630e02d74fc" validate="false"/>
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=5798b630e02d74fc" validate="false"/>
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />
    </httpHandlers>
        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
    </httpModules>

Roman.

3 Answers, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 12 May 2009, 09:04 AM
Hello Roman,

The settings  that you have applied are for IIS6, not for IIS7. The IIS7 settings should be place inside a system.webServer tag. The easiest way to configure your web-config is to use the smart tag of the RadProgressManager, it will configure all the needed entries for you.

For your convenience I have prepared sample project with a correct web-config. Please, give it a try and obeserve whether the progress area appears. However, keep in mind that on a local host the upload speed is very high, thus it is unlikely to see the progress area for small files, they are uploaded before there is time for the progress area to show up. If you have troubles uploading large files, please take a look at the following article.

All the best,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Roman
Top achievements
Rank 1
answered on 14 May 2009, 08:18 AM
Hello Genady!

I have tried your version of web.config, and now my progress bar is working. Also it works, when i upload some files on my local machine, but if i upload this changes on my server, It gives me another error, and doesn't upload any files. There is error with location, but on my local machine, it works fine.

Please, could not you look at the part of my code?

I really need to solve this problem.

All the best,
Roman Alekhin
0
Atanas Korchev
Telerik team
answered on 14 May 2009, 03:44 PM
Hello Roman,

This may occur if you have some other http modules registered in your web server. Please verify this is not the case - check for any parent web.config files and in machine.config.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
Roman
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Roman
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or