Hi all,
I have a page that has a radupload control on it. In the code behind we check to make sure the uploadedfiles collection has something in it before we attempt to process the uploaded file.
This works on every system in our dev environment except for one. We have tried copying the directory tree between systems, completely wiping the directory and starting from scratch, and checking every setting we can think of.
It does not use an AJAX post-back, the app is set to run Full Trust, and we are not changing the masterpageID in the init.
Any ideas? banging my head against a wall on this one.
Patrick
14 Answers, 1 is accepted
0
Hello ThePope,
This is indeed strange and unexpected behavior. As a troubleshooting step you can do the folllowing: Place a standard FileInput on your page and try to upload a file with it. Then, in the code behind use the PostedFile
property of the later control to find out whether there is a file uploaded. If there is, this will mean that the problem is in the RadUpload. If not, the problem is in the machine/website. As an additinal step, you can use the Telerik.Web.UI.RadUploadContext.Current.UploadedFiles collection and check whether it contains any files.
Kind regards,
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.
This is indeed strange and unexpected behavior. As a troubleshooting step you can do the folllowing: Place a standard FileInput on your page and try to upload a file with it. Then, in the code behind use the PostedFile
property of the later control to find out whether there is a file uploaded. If there is, this will mean that the problem is in the RadUpload. If not, the problem is in the machine/website. As an additinal step, you can use the Telerik.Web.UI.RadUploadContext.Current.UploadedFiles collection and check whether it contains any files.
Kind regards,
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
ThePope
Top achievements
Rank 1
answered on 03 Aug 2009, 07:49 PM
Ok, tried both options. created a simple test page with a regular asp fileupload control, and that worked fine. Switched it to the telerik fileupload control and got the same restult, an empty uploadedfiles collection.
I then changed the call to use "Telerik.Web.UI.RadUploadContext.Current.UploadedFiles.Count" instead and got an "object reference not set to an instance of an object" error.
Does this help at all?
Thanks
Patrick
0
Hi ThePope,
RadUpload in its core uses the standard file input for file uploads. That is why I wanted to see whether the standard file input would work. On the PC that fails, do you test under IIS or under Cassini? (Cassini is the VisualStudio web server). Perhaps it is a setting in IIS that is causing the problem. Can you please verify that the following has a value:
The following should have a value too:
Regards,
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.
RadUpload in its core uses the standard file input for file uploads. That is why I wanted to see whether the standard file input would work. On the PC that fails, do you test under IIS or under Cassini? (Cassini is the VisualStudio web server). Perhaps it is a setting in IIS that is causing the problem. Can you please verify that the following has a value:
Request.QueryString["RadUrid"] |
The following should have a value too:
Application["RadProgressContext" + Request.QueryString["RadUrid"]] |
Regards,
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
ThePope
Top achievements
Rank 1
answered on 04 Aug 2009, 04:21 PM
Thanks for the quick response!
I get a value for the Radurid, but the Application("RadProgressContext" + Request.QueryString("RadUrid")) is nothing.
Patrick
0
Hi ThePope,
We need more information on that issue, it is really strange since it appears only on one machine and works on all others. If you can answer to the following queries, this will greatly help us debug the problem.
1) Does the problem show up under IIS or under Cassini or both
2) If IIS, which version
3) Please, paste here the stack trace that you receive when the "object reference not set to an instance of an object" pops up.
Thank you for your cooperation.
Best wishes,
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.
We need more information on that issue, it is really strange since it appears only on one machine and works on all others. If you can answer to the following queries, this will greatly help us debug the problem.
1) Does the problem show up under IIS or under Cassini or both
2) If IIS, which version
3) Please, paste here the stack trace that you receive when the "object reference not set to an instance of an object" pops up.
Thank you for your cooperation.
Best wishes,
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
ThePope
Top achievements
Rank 1
answered on 06 Aug 2009, 03:41 PM
Sorry everybody, we were having a problem with our source code app and had an outdated web.config that was pointing to the old version of the RadUpload. Updating the web.config took care of the problem.
Thanks for the help!
Patrick
0
Faiz
Top achievements
Rank 1
answered on 11 Dec 2012, 11:00 AM
Hi,
I have tried the same but still facing problem.
1. Problem is under IIS 7
2. PFA screen shot for stack trace.
My application is running under integratedmode and framework is 2.0
I have followed steps from ths link:
http://www.telerik.com/help/aspnet-ajax/upload-configuration.html
Thanks in advance
I have tried the same but still facing problem.
1. Problem is under IIS 7
2. PFA screen shot for stack trace.
My application is running under integratedmode and framework is 2.0
I have followed steps from ths link:
http://www.telerik.com/help/aspnet-ajax/upload-configuration.html
Thanks in advance
0
Hi Faiz,
Plamen
the Telerik team
I am attaching a sample project with an isolated RadUpload in is that worked properly at my side. Please review it and test it at you side. If it is working properly compare it with your one. If not please share the exact configurations of the environment and the served used so we could test it locally and be more helpful with a solution.
Plamen
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.
0
Faiz
Top achievements
Rank 1
answered on 14 Dec 2012, 01:08 PM
Hi,
I have to work .Net Framework 2.0 with this configuration for telerik control.
Am able to upload the file using chrome, firefox,safari but for IE am getting dialogue box when am trying to save the file.
This is happening only in IE.
PFA screen shot.
I have to work .Net Framework 2.0 with this configuration for telerik control.
Am able to upload the file using chrome, firefox,safari but for IE am getting dialogue box when am trying to save the file.
This is happening only in IE.
PFA screen shot.
0
Faiz
Top achievements
Rank 1
answered on 19 Dec 2012, 06:59 AM
Hi,
Any updates on this issue.
Any updates on this issue.
0
Hello,
Plamen
the Telerik team
This error is a known one and its solution is explained in this help topic.
Plamen
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.
0
Faiz
Top achievements
Rank 1
answered on 19 Dec 2012, 11:02 AM
Hi,
Thanks for the reply. I have tried the steps which have been mentiond from the link you have sent.
Am getting this error now:
PFA screen shot.
Thanks again for your help.
Thanks for the reply. I have tried the steps which have been mentiond from the link you have sent.
Am getting this error now:
PFA screen shot.
Thanks again for your help.
0
Faiz
Top achievements
Rank 1
answered on 21 Dec 2012, 11:04 AM
Hi,
Any updates on this issue.
Any updates on this issue.
0
Hello Faiz,
Plamen
the Telerik team
The error the is seen on the image attached is quite complex and not typical for any of our controls so that is why I will recommend you to research what may be causing it in some ASP Net forum like this one.
Hope this will be helpful.
Plamen
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.