Welcome to Mediachase Community Sign in | Join | Help    
in Search   

Mediachase Upload size

Last post Wed, May 12 2010, 9:10 AM by richly. 5 replies.
Sort Posts: Previous Next
  •  Wed, May 05 2010, 6:10 PM 11305

    Mediachase Upload size

    I am using  (4.1.2) medichase version. Size of my upload file is around 750MB. I would like to know if mediachase upload functionality can support this.
    For now when I try to upload it fails after a while. Do I have to specify any upload size in web.config?

    I want to use this as the available download once the purchase is made.

    Is this upload possible through mediachase?

  •  Thu, May 06 2010, 9:24 AM 11307 in reply to 11305

    Re: Mediachase Upload size

    Hi Aniketh,

    This error occurs when trying to create a new download and uploading the file from there, am I correct? Could you replicate the issue and post the error message here?

    Once possible workaround if you continue to have issues is upload the file using a separate utility as opposed to using the uploader in ECF. Just directly enter the path to the uploaded file in the File field when creating the new download.

    Hope that helps,
    Richly
  •  Thu, May 06 2010, 5:20 PM 11308 in reply to 11307

    Re: Mediachase Upload size

    Thanks for your reply. My upload was successful. I increased the timout period in web.config and it fixed it.
    Now while downloading this video I am getting following error. FYI, The filesize is 750MB






    Resolution:
    Please ensure that your data service is online and running and that the connection string in your web.config file is correct and make sure the key specified by
    ConnnectionStringName exists in connectionStrings section.

    To configure your connection string:

    1. Open [Install Location of eCommerce Framework]\PublicStore\web.config

    2. Within web.config find the configuration section (highlighted) below:

    <configuration>
    <ClientConfig>
    <Settings ConnectionStringName="EcfSqlConnection" SubscriptionId="{SUBSCRIPTION_GUID}"
    CartKey="ShoppingCartKey" AffiliateKey="AffiliateKey" Expires="24"></Settings>
    </ClientConfig>
    ...

    <connectionStrings>
    <add name="EcfSqlConnection" connectionString="{connection string to your database}"/>
    </connectionStrings>
    </configuration>
    Error Message:
    System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.IO.File.ReadAllBytes(String path) at Mediachase.eCF.BusFacade.CustomerManager.CreateItemFile(CustomerItemFileRequest request, IList`1& errorArray) in W:\ReferenceApplication\eCF412_FullSourceCode-rtm\BusinessLayer\FacadeLibrary\CustomerManager.cs:line 432 at Mediachase.eCF.BusFacade.CustomerManager.CustomerItemFile(CustomerItemFile lookup) in W:\ReferenceApplication\eCF412_FullSourceCode-rtm\BusinessLayer\FacadeLibrary\CustomerManager.cs:line 359 at Mediachase.eCF.ClientLib2.ClientCustomer.GetItemFile(Int32 versionId) in W:\ReferenceApplication\eCF412_FullSourceCode-rtm\PublicLayer\ClientLibrary\ClientCustomer.cs:line 1100

      For more information visit http://www.mediachase.com.




    How can this be resolved. I also increased the Maximum used and virtual memory in IIS Application Pool  to 1000MB but still the same.

    Any solution for this?

  •  Fri, May 07 2010, 10:33 AM 11309 in reply to 11308

    Re: Mediachase Upload size

    Hi Anaketh,

    It looks like you're in the right area. You may want to take a look at this link for help:
    http://stackoverflow.com/questions/2599739/system-outofmemoryexception-on-file-download
  •  Fri, May 07 2010, 11:26 AM 11310 in reply to 11309

    Re: Mediachase Upload size

    I tried that link but was not helpful. Is there anything I can break in code that could make this happen.

    This is the code that throws the error.

    ItemFile file = new ItemFile();
                DownloadVersion downloadVersion = new DownloadVersion();
                int VersionId = Version_ID;

                if (downloadVersion.LoadByPrimaryKey(VersionId))
                {
                    downloadVersion.DownloadsCount++;
                        downloadVersion.Save();

                        file.FileName = downloadVersion.Name;
                        if (downloadVersion.FileUrl != null)
                        {
                            if (downloadVersion.FileUrl.IndexOf("http") >= 0)
                            {
                                file.Value = new string[] { downloadVersion.FileUrl };
                            }
                            else
                            {
                                file.ContentType = "application/octet-stream";
                                string path = System.Web.HttpContext.Current.Server.MapPath(downloadVersion.FileUrl);
                                try
                                {
                                    file.FileContents = File.ReadAllBytes(path);
                                }
                                catch (Exception e)
                                {
                                }

                            }
                        }
                        else
                        {
                            file.FileContents = downloadVersion.FileData;
                        }
                    }                           
                else
                {               
                }
                return file;


    Error is thrown when it tries to read all the bytes in one shot on the following line
            file.FileContents = File.ReadAllBytes(path);

    Is there anything that can be done in this section?


  •  Wed, May 12 2010, 9:10 AM 11316 in reply to 11310

    Re: Mediachase Upload size

    Hello Aniketh,

    Sorry for the delay. Our developers are still investigating the issue. Have you been able to make any progress on this issue?

    --Richly
View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems