Strange .Net error while uploading.

Last post 05-11-2010, 9:13 AM by ramponis. 5 replies.
Sort Posts: Previous Next
  •  02-26-2010, 4:33 AM 59004

    Strange .Net error while uploading.

    Dear CuteSoft,
     
    Somehow i sometimes get the following error back from IIS after uploading a file:
    Server Error in '/' Application.
    --------------------------------------------------------------------------------
    Collection is read-only.
    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.NotSupportedException: Collection is read-only.
    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:
    [NotSupportedException: Collection is read-only.]
       System.Collections.Specialized.NameObjectCollectionBase.BaseSet(String name, Object value) +5258590
       System.Web.HttpServerVarsCollection.SetServerVariableManagedOnly(String name, String value) +124
       System.Web.HttpServerVarsCollection.SynchronizeServerVariable(String name, String value) +28
       System.Web.HttpRequest.SynchronizeHeader(String name, String value) +159
       System.Web.Hosting.IIS7WorkerRequest.GetHeaderChanges(HttpContext ctx, Boolean forRequest) +941
       System.Web.Hosting.IIS7WorkerRequest.SynchronizeVariables(HttpContext context) +52
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +477
    As you can see, this is error is raised by the webserver itself.
    And if i raise an alert by using the CuteWebUI_AjaxUploader_OnTaskError function, i get the following:
    file error:
    FileName: whatever.jpg
    msg: undefined
    reason: unload

    Do you have any idea what can be wrong?

    several details:
    - version: 3.0.0.0
    - Silverlight / iFrame / Flash doesn't make a difference
    - It is no userrights restriction
     
    Thanks in advance!
    Dave

    http://www.interactie.nl
  •  03-01-2010, 7:47 AM 59055 in reply to 59004

    Re: Strange .Net error while uploading.

    Hi,
     
    We have investigated on it, and found that caused by our code which intercept the WorkerRequest.
     
    You can use this setting to avoid this issue :
     
    add this line to web.config appSettings
     
    <add key="CuteWebUI.AjaxUploader.UseAspNetStream" value="True" />
     
    Regards,
    Terry
  •  03-03-2010, 3:57 AM 59129 in reply to 59055

    Re: Strange .Net error while uploading.

    Unfortunately that doesn't seems to solve the problem. I think it's some kind of web.config / IIS setting that keeps throwing this error. But I can't seem to localize it.
     
    Do you have any further ideas?

    http://www.interactie.nl
  •  05-07-2010, 11:25 AM 60808 in reply to 59129

    Re: Strange .Net error while uploading.

    We have a similar issue:
    - IE 8 works well with Visual Studio and IIS < 7
    - all other Windows browsers work well with every webserver
    - with IE 8 and IIS, the "collection is read-only" error shows after upload
    - adding<add key="CuteWebUI.AjaxUploader.UseAspNetStream" value="True" /> to web.config solves the issue, but the progress bar is not shown anymore
     
    It seems strange that only the specific combination IE + IIS7 produces that behaviour, no matter if Flash or Silverlight are used.
     
    Any ideas?
  •  05-10-2010, 10:04 PM 60886 in reply to 60808

    Re: Strange .Net error while uploading.

    Hi,
     
    This issue is fixed. please download it again.
     
    Regards,
    Terry
  •  05-11-2010, 9:13 AM 60908 in reply to 60886

    Re: Strange .Net error while uploading.

    I have a similar issue when i try to upload multiple files from ie8 to iis7
    I'm using the last CuteWebUI.AjaxUploader.dll
     
     
    Randomly the upload freeze
     
     
    and after some minutes i receive this error:
     
     
    How can i fix this problem?
     
    I have found a workaroud from microsoft:
     
     
    I have tested on my client and it works, but i can not modify all the external contributors clients
View as RSS news feed in XML