More in this section

Forums / Developing with Sitefinity / Error when trying to download file from Module

Error when trying to download file from Module

2 posts, 0 answered
  1. John
    John avatar
    1 posts
    Registered:
    28 Jan 2009
    28 Jan 2009
    Link to this post
      I'm a SiteFinity noob working on a project that allows an admin to upload files for a specific account.  Later, someone under that account can login and download said files.  My problem is that on certain file downloads I get an exception (at the bottom of the post).
      But I also found that I get this same error when logged into SiteFinity!  If I go to the "Images and Documents" Module, and click "download" next to a file, I get the same error.  However, I don't get this error on the .gif and .csv files I have, but I do get it for the .txt and .doc files I have there.
      I am running this SiteFinity on my local XP Machine, on SiteFinity 3.5 (I think).  Any ideas?  Thanks in advance!

    -John

    Server Error in '/' Application.

    Specified argument was out of the range of valid values.
    Parameter name: offset

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
    Parameter name: offset

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
    Parameter name: offset]
       System.Web.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count) +8862808
       System.Web.HttpResponse.BinaryWrite(Byte[] buffer) +27
       Telerik.Cms.Engine.ContentHttpHandler.ProcessContentItem(IContent content) +555
       Telerik.Cms.Engine.ContentHttpHandler.ProcessContent() +72
       Telerik.Cms.Engine.ContentHttpHandler.ProcessRequest(HttpContext context) +936
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    

  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    29 Jan 2009
    Link to this post
    Hello John,

    This happens with every file with size - 0 bytes, or with text files (.txt, .doc, .docx.. etc.) that do not have any content. Is this the case?
    We fixed this for the 3.6 version.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered