RadUpload returns empty uploadedfiles collection

Thread is closed for posting
15 posts, 0 answers
  1. ThePope
    ThePope avatar
    39 posts
    Member since:
    Mar 2007

    Posted 30 Jul 2009 Link to this post

    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
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 31 Jul 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ThePope
    ThePope avatar
    39 posts
    Member since:
    Mar 2007

    Posted 03 Aug 2009 Link to this post

    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
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 04 Aug 2009 Link to this post

    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:

    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.
  6. ThePope
    ThePope avatar
    39 posts
    Member since:
    Mar 2007

    Posted 04 Aug 2009 Link to this post

    Thanks for the quick response!

    I get a value for the Radurid, but the Application("RadProgressContext" + Request.QueryString("RadUrid")) is nothing.

    Patrick
  7. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 06 Aug 2009 Link to this post

    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.
  8. ThePope
    ThePope avatar
    39 posts
    Member since:
    Mar 2007

    Posted 06 Aug 2009 Link to this post

    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
  9. Faiz
    Faiz avatar
    5 posts
    Member since:
    Dec 2012

    Posted 11 Dec 2012 Link to this post

    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
  10. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 14 Dec 2012 Link to this post

    Hi Faiz,

     
    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.

    All the best,
    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.
  11. Faiz
    Faiz avatar
    5 posts
    Member since:
    Dec 2012

    Posted 14 Dec 2012 Link to this post

    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.

  12. Faiz
    Faiz avatar
    5 posts
    Member since:
    Dec 2012

    Posted 19 Dec 2012 Link to this post

    Hi,

    Any updates on this issue.
  13. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 19 Dec 2012 Link to this post

    Hello,

     
    This error is a known one and its solution is explained in this help topic.

    All the best,
    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.
  14. Faiz
    Faiz avatar
    5 posts
    Member since:
    Dec 2012

    Posted 19 Dec 2012 Link to this post

    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.
  15. Faiz
    Faiz avatar
    5 posts
    Member since:
    Dec 2012

    Posted 21 Dec 2012 Link to this post

    Hi,

    Any updates on this issue.
  16. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 21 Dec 2012 Link to this post

    Hello Faiz,

     
    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.

    Regards,
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017