EPiFileUpload: Error - Fileupload failed with code 500

 
I try to drag and drop files into EPiServer CMS 5 SP1, but I get following error: EPiFileUpload: Error Fileupload failed with code 500 (Filopplastningen mislyktes med feilkoden 500) This is the error message asp.net generates: [ArgumentNullException: Value cannot be null. Parameter name: collection] System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) +41 System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) +2401017 EPiServer.Globalization.ContentLanguage.LanguagePreferenceList(String priorityLanguage) +233 EPiServer.Globalization.ContentLanguage.SetCulture(String priorityLanguage) +9 EPiServer.Globalization.ContentLanguage.get_PreferredCulture() +57 EPiServer.PageBase.GetPage(PageReference pageLink) +148 EPiServer.Web.PageExtensions.LoadCurrentPage.get_CurrentPage() +209 EPiServer.PageBase.get_CurrentPage() +44 EPiServer.PageBase.QueryAccess() +13 EPiServer.UI.SystemPageBase.QueryAccess() +19 EPiServer.PageBase.OnInit(EventArgs e) +359 EPiServer.UI.OfficeIntegration.HandleMultiUpload.OnInit(EventArgs e) +9 System.Web.UI.Control.InitRecursive(Control namingContainer) +321 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834 - Uploading files the standard way works fine - Advanced File Upload component v2.1 is installed - The physical paths in web.config are correct - User have premission to "Advanced Filed Upload" - Language is set to norwegian This is happening in a enterprise environment
#15991 Feb 03, 2008 16:09
  •  
    Hi! The problem seems to be caused by a missing null reference check when adding the preferred languages from the browser. This has been reported as bug #8100 and can be found on the public bug list [http://labs.episerver.net/buglist/]. Unfortunately it didn't make it into the SP1 release. It's shown when uploading files since the file upload component doesn't send any preferred languages. If you set pageUseBrowserLanguagePreferences="false" in web.config the drag & drop uploading of files will probably work. /Stefan
    #16761 Feb 04, 2008 14:41
  •  
    Thanks, works fine! :)
    #16762 Feb 13, 2008 9:40
  •  

    I'm having the same problem, in CMS 5 R2. Errorcode 500 when trying to drag and drop files (or one file). However one file (the last one, if dragging multiple) seems to atleast be uploading correctly, despite the error. The rest are not however. I've tried the solution above, doesn't help (it's been set that way all along).

    If you look at the exception, something weird seems to be happening to the Request URL. It's like all the "/" are replaced by "An unhandled exception...". It should really look like this: http://site/byggUI/OfficeIntegration/HandleMultiUpload.aspx?dir=Global/F%c3%b6r+dig+som+%c3%a4r/Ung/Tiokamp/2005&index=0&islastbits=1&filename=%c3%b6rebro.jpg

    This is my exception:

     

    Exception information:

    Exception type: NullReferenceException
    Exception message: Object reference not set to an instance of an object.

    Request information:
    Request URL: http://site/byggUI/OfficeIntegration/HandleMultiUpload.aspx?dir=An unhandled exception has occurred.fGlobalAn unhandled exception has occurred.fF%c3%b6r+dig+som+%c3%a4rAn unhandled exception has occurred.fUngAn unhandled exception has occurred.fTiokampAn unhandled exception has occurred.f2005&index=0&islastbits=1&filename=%c3%b6rebro.jpg
    Request path: /siteUI/OfficeIntegration/HandleMultiUpload.aspx

    Thread information:
    Stack trace: at EPiServer.UI.OfficeIntegration.HandleMultiUpload.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    #26653 Dec 15, 2008 14:49
  •  

    I've got the same error : Fileupload failed with code 500 when I upload with Drag&Drop several files (and the last file is correctly uploaded) for virtual path of type "EPiServer.Web.Hosting.VirtualPathNativeProvider,EPiServer" only. It works fine with virtual pathes of type "EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" however. Here is the error I get. Any help available ?

    ----------------------------------------------------------
    2010-02-23 19:44:10,373 ERROR 5 EPiServer.Global - 1.2.5 Unhandled exception in ASP.NET
    
    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at EPiServer.UI.OfficeIntegration.HandleMultiUpload.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       --- End of inner exception stack trace ---
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.cms_officeintegration_handlemultiupload_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\938dc4ea\158d80c3\App_Web_4oa2gpyq.2.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    
    
    

     

    ----------------------------------------------------------
    2010-02-23 19:44:10,373 ERROR 5 EPiServer.Global - 1.2.5 Unhandled exception in ASP.NET
    
    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at EPiServer.UI.OfficeIntegration.HandleMultiUpload.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       --- End of inner exception stack trace ---
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.cms_officeintegration_handlemultiupload_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\938dc4ea\158d80c3\App_Web_4oa2gpyq.2.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    
    -------------------------------------------------

    2010-02-23 19:44:10,373 ERROR 5 EPiServer.Global - 1.2.5 Unhandled exception in ASP.NET

     

    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.

       at EPiServer.UI.OfficeIntegration.HandleMultiUpload.OnLoad(EventArgs e)

       at System.Web.UI.Control.LoadRecursive()

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

       --- End of inner exception stack trace ---

       at System.Web.UI.Page.HandleError(Exception e)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

       at System.Web.UI.Page.ProcessRequest()

       at System.Web.UI.Page.ProcessRequest(HttpContext context)

       at ASP.cms_officeintegration_handlemultiupload_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\938dc4ea\158d80c3\App_Web_4oa2gpyq.2.cs:line 0

       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

     

    #37192 Edited, Feb 23, 2010 20:05
  • Member since: 2008
     

    Hi Guillaume,

    What version of episerver are you running? We have a registered bug # 22493 in R2 (5.2.375) , which has been fixed in R2-SP2(5.2.375.236) release.

    #37198 Feb 24, 2010 9:05
  •  

    Hi Shahid,

     

    We're indeed running the version 5.2.375.133. Thus, we will see to upgrade our version to fix this issue.

     

    Thanks,

    Guillaume

    #37207 Feb 24, 2010 11:57
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
Please login to post a reply