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

RadUpload Ajax call back error. Source url returned invalid content

19 Answers 413 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Gang Xue
Top achievements
Rank 1
Gang Xue asked on 29 Aug 2008, 10:53 AM
Hi,

I got a RadUpload Ajax callback error when I put a RadUpload and RadUploadProgressHandler on a web form hosted in IIS7. The error message is as following:

System.NullReferenceException: Object reference not set to an instance of an object. 
    at Telerik.Web.UI.RadProgressContext.Serialize(TextWriter writer) 
    at
Telerik.Web.UI.RadUploadProgressHandler.ProcessRequest(HttpContext context)

Telerik.RadUploadProgressHandler.ashx?RadUrid=......

Did you register the RadUploadProgressHandler in web.config?

Please ....


The error message only appears in a popup message box when the IIS is restarted and the the page is visited (and a button/link is clicked) for the first time. It is not just triggered by an upload. A normal postback gets the same thing. Yet after that it never happens again even when the page is loaded in a seperate browser on a different computer. It does not affect any operations either, but still having an error poped out is not ideal.

I have triple checked my web.config to make sure that I have done everything suggested in the documentation. The fact that this error only happens once at the start suggests that it might have something to do with the way the RadUploadProgressHandler component is registered with the web server or how it is initialized.

Has anyone else here got the similar error? Any suggestions will be appreciated. Thanks.


19 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 29 Aug 2008, 11:07 AM
Hi Gang Xue,

Please download the SP1 from your Client.Net account and try with it.

I hope this helps.

All the best,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gang Xue
Top achievements
Rank 1
answered on 29 Aug 2008, 01:08 PM
Brilliant. It fixed the problem indeed. Thanks a lot!
0
Logan
Top achievements
Rank 1
answered on 03 Sep 2008, 08:10 PM
I was uploading pictures to the web on a site when the select buttom would not let me load them. this message came up:Radupload  Ajax callback error source url returned error 12031
unknown
 /Telerik.Raduploadprogress Handler.aspc? Radurid=69ao3e77-daac-46cf-8a44-7c14887424aO
Did you register the Radupload progress handler in web. config?
help: Radupload 2x-using Radupload-configuration-Rad upload progress handler
0
Veselin Vasilev
Telerik team
answered on 04 Sep 2008, 06:52 AM
Hi Logan ,

Please make sure that you have correctly registered the RadUploadProgressHandler in the web.config file.

It seems you have entered Telerik.RaduploadprogressHandler.aspc while it should be:
Telerik.RadUploadProgressHandler.ashx

Check this article for more information:
http://www.telerik.com/help/aspnet-ajax/upload_configurationraduploadprogresshandler.html

Kind regards,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joe
Top achievements
Rank 1
answered on 02 Oct 2008, 12:25 AM
I have a similar error happening, I wonder if SP1 would fix my problem, i thought i was using SP1 though, a pop up happens, and it seems like processing continues on the server side, but usually an IE error follows (cant find the resource, check connection, etc), here is the pop up error:

RadUpload AJAX callback error. Source url returned invalid content:
System.NullReferenceException:  Object reference not set to an instance of an object.  at Tererik.Web.UI.RadUploadContect.get_UploadComplete()
at Telerik.Web.UI.RadProgressContext.Serialize(TextWriter writer)
at Telerik.Web.UI.RadUploadProgressHandler.ProcessRequest(HttpContext context)
Telerik.RadUploadProgressHandler.ashx?RadUrid= <long guid>
Did you register the RadUPloadProgressHandler in web.config?

- I have the Progress handler registered in web.config also.  And the page uploads most of the time, but just randomly this error will pop of, cant figure out exactly when cuz its so random.  There is a lot going on the page though:
2 Rad UPload controls, a RadEdit control, save button to save everything, and while saving the code fires off an EXE to convert the uploaded files.  Any thoughts?

Edit:  Or is it a "High trust" issue i've been reading about. My local machine with default installations of visual studio, telerik, etc should have high trust set correct?  Or do i need to set it in the web.config:
here is the live link of the site:
http://next-ver.sbtv.com/
- but you will need to create a user, etc, then click New Post or My Contenct to edit current entries you've entered.  But lets see what you say about the first part first :)  thanks

0
Joe
Top achievements
Rank 1
answered on 02 Oct 2008, 07:42 PM
Oh and i'm using IIS 6 not 7.  And I already tried EVERYTHING in this article:  http://www.telerik.com/support/kb/article/b454K-hag-b454T-ctd-b454c-ctd.aspx
 Please help!  thanks
0
lampy
Top achievements
Rank 1
answered on 02 Oct 2008, 11:04 PM
I am also having the same issue!  IIS 6 and I have done EVERYTHING in those articles as well.
0
Erjan Gavalji
Telerik team
answered on 06 Oct 2008, 07:18 AM
Hi guys,

From the message details you've sent I noticed that you've encountered an error we fixed before the SP1 release. Please, upgrade to the most current version (Q2 2008 SP2).

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joe
Top achievements
Rank 1
answered on 06 Oct 2008, 06:45 PM
The service pack seems to have fixed the AJAX pop up error, thank you, i should have tried that first.
0
Brian Camp
Top achievements
Rank 1
answered on 08 Oct 2008, 02:07 PM

Hi guys, we are having the same problem with the Radupload control. We see that SP1 will *hopefully* fix the problem, however in our "My Purchases" page, the SP1 download link is missing. 

So the Question is: Where can we get SP1?  Or is it in another location other than in "My Purchases"?

Also, would upgrading to the latest version of rad controls (2008.2.1001.20) remove the need to get SP1?

Thanks!
0
Paul
Telerik team
answered on 08 Oct 2008, 02:17 PM
Hi Larry,

You can upgrade to SP2 directly (2008.2.1001). The mentioned fix is included.

Greetings,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brian Camp
Top achievements
Rank 1
answered on 08 Oct 2008, 03:11 PM
Paul,

Thanks for the very quick response!  Well, we upgraded using the latest version, and are getting the same exact result.

It almost sounds like we need to also install SP1 and/or SP2 independently?

Thanks again.
0
Veselin Vasilev
Telerik team
answered on 08 Oct 2008, 03:31 PM
Hello larry eppard,

You do not need to install the SP1 first as SP2 contains all the fixes. Maybe your scenario is a little different from what we have fixed or maybe you are not using the latest version (e.g. you might have references to the old version). In either case I would suggest that you open a support ticket and send us a sample project demonstrating the issue.

Thanks

Sincerely yours,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brian Camp
Top achievements
Rank 1
answered on 10 Oct 2008, 04:15 PM
For anyone that followed the instructions provided from the following Telerik page,

http://dnn.telerik.com/Support/radUploadModule/tabid/55/Default.aspx

and is still having issues with this error, you might have to change the RewriterRule currently provided there from

<RewriterRule>
<LookFor>.*Telerik.RadUploadProgressHandler.aspx</LookFor>
<SendTo>~/Telerik.RadUploadProgressHandler.aspx</SendTo>
</RewriterRule>

to

<RewriterRule>
<LookFor>.*Telerik.RadUploadProgressHandler.ashx</LookFor>
<SendTo>~/Telerik.RadUploadProgressHandler.ashx</SendTo>
</RewriterRule>

That is, aspx should be made ashx, as it is the handler that needs this rule, not apparently, any of the web forms (aspx's).

Thanks to the Telerik support team for reproducing the problem and helping us figure this one out.  We responded letting them know of where we got the incorrect RewriterRule in the first place, which is a Telerik provided page.  So hopefully it will get updated soon so that what happened to us, doesn't happen to anyone else in the future.
0
Riaan Terblanche
Top achievements
Rank 1
answered on 05 Oct 2009, 09:38 AM
Hi

I cannot locate the SP1 download link for Q2 2008 on my download page, can you perhaps post a link whereby I can download SP1 for Q2 2008.

Thanks
0
Ivo
Telerik team
answered on 05 Oct 2009, 10:45 AM
Hi,

There is a link in the Downloads page saying "Older Versions" next to RadControls for ASP.NET AJAX.

Q2 2008 SP1 is actually version number 2008.2.826 in the list.

Greetings,
Ivo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kurniadi
Top achievements
Rank 1
answered on 18 Oct 2011, 04:44 AM
I am trialling the latest release of ASP.NET AJAX and got the above error message after web.config configuration.
I set up web.config by following instructions on this article http://www.telerik.com/help/aspnet-ajax/upload-configuration.html
It turned out there was a malformed xml in my web.config xml due to copying and pasting the xml stright from that article.
The error is for httphandler IIS 7: "precondition" should be "preCondition". It is case sensitive!
Hope this will help anyone.
0
Rishi
Top achievements
Rank 1
answered on 14 Mar 2012, 03:44 PM
I WILL NOT RECOMMEND TELERIK TO ANY ONE. THEIR PRODUCTS ARE BUGGY. RADUPLOAD CONTROL HAS ISSUES WITH AJAX POPUPS

THEY DONT TEST THEIR PRODUCTS
0
Kate
Telerik team
answered on 15 Mar 2012, 04:25 PM
Hello Rishi,

We have already answered your question related to the RadUpload control in your other thread (here is a link to the post), but for convenience I am pasting my reply below as well:

All controls go trough extensive QA testing before every release. We have long ago addressed that issue, the most likely reason you are seeing this error is miss configured progress handler in the web.config.

You can find more information on properly register the upload module and handler
here.

If there are of no help, please open a support ticket and elaborate on the exact problem that you are experiencing and your use case scenario. This will help us to assist you better with the problem
.

Kind regards,
Kate
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.
Tags
Upload (Obsolete)
Asked by
Gang Xue
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Gang Xue
Top achievements
Rank 1
Logan
Top achievements
Rank 1
Joe
Top achievements
Rank 1
lampy
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Brian Camp
Top achievements
Rank 1
Paul
Telerik team
Riaan Terblanche
Top achievements
Rank 1
Ivo
Telerik team
Kurniadi
Top achievements
Rank 1
Rishi
Top achievements
Rank 1
Kate
Telerik team
Share this question
or