1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / RadBinaryImage upload crashes the second time

RadBinaryImage upload crashes the second time

3 posts, 0 answered
  1. Bruno Michels
    Bruno Michels avatar
    125 posts
    Registered:
    16 Apr 2010
    30 Jun 2010
    Link to this post
    UPDATE: Sorry, it is actually a RadAsyncUpload

    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AllowedFileExtensions=".jpg,.png,.gif" MaxFileInputsCount="1" MaxFileSize="204800" Localization-Select="Selecione" OnClientFileUploaded="fileUploaded" OverwriteExistingFiles="true">
    </telerik:RadAsyncUpload>



    I go to page Default.aspx
    Upload a image
    Go to page Other.aspx
    Go to page Default.aspx
    Try to upload

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Web.UI.RadUploadHttpModule.UpdateUploadContext(ProgressWorkerRequest progressWorker) +76
       Telerik.Web.UI.RadUploadHttpModule.CaptureWorkerRequest(Object sender, EventArgs e) +152
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

    What could be causing this behavior?
  2. Bruno Michels
    Bruno Michels avatar
    125 posts
    Registered:
    16 Apr 2010
    30 Jun 2010
    Link to this post
    RadAsyncUploadContext is null. Why?

    I created an empty page, and added the RadAsync there and it's crashing. I tried to restart IIS but nothing changed.
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    02 Jul 2010
    Link to this post
    Hello Bruno Michels,

    UpdateUploadContext could return null if the parameter   ProgressWorkerRequest is null. When we call UpdateUploadContext we create a  new  instance of AsyncProgressWorkerRequest(workerRequest, Context.Request); where the workerRequest is HttpWorkerRequest.

    • Could you tell us which version of Teleril.Web.UI.dll you use
    • Are there any errors in the requests - POST/GET when the problem occurs - you can easily see this using FireBug.
    • Under which version of ASP.NET Framework you are running the project ( there are some issues if you are trying to use .NET Framework 4.0)
    • How do you make the redirects between the pages  - response redirect, browser arrows ? Is this request to some external page which could cause changing the host.
    If you can provide any additional information, it will be great, so we will be able to narrow down this issue and see whether there is a bug in our code.
    Regards,
    Ivan Dimitrov
    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
Register for webinar
3 posts, 0 answered