Strange behaviour of Uploading control

Last post 07-24-2012, 9:44 AM by Kenneth. 4 replies.
Sort Posts: Previous Next
  •  07-23-2012, 4:56 AM 74192

    Strange behaviour of Uploading control

    Hello,

    I like the idea of your ajaxuploader control but unfortunately I can’t get it work in my SharePoint 2010 environment. I use UploadAttachments control for C#.

    Sometimes it works really good (I can upload the files and eg. Send them to SharePoint list as an attachments) but sometimes some strange things happens (and the issue occurs on different files, even on those which have been uploaded few clicks ago without any problems).

    I’m using SharePoint 2010 foundation and the temporary license for your controls.

    First issue:
    I’m trying to upload file, progress bar appears but hangs and the following error appears. When I click OK and try to upload file again it sometimes works well but sometimes the same error appears.

    http://imageshack.us/photo/my-images/703/67354624.png/

    When it fails the following icon appears

     http://imageshack.us/photo/my-images/33/97474378.png/

    And another try:

    http://imageshack.us/photo/my-images/7/64243480.png/

    Second issue:
    Sometimes random files are uploaded with 0Bytes length. When I open the shared location where files are stored it has also 0Bytes while in explorer the file I want to upload has proper size.

     http://imageshack.us/photo/my-images/820/19688675.png/


    Uploaded File in shared location:
    http://imageshack.us/photo/my-images/84/17662127.png/

    File to upload in explorer:
    http://imageshack.us/photo/my-images/842/91323356.png/


    I really like the control and would like to buy it but these errors are the real pain...

    What can I do to resolve it?

  •  07-23-2012, 9:04 AM 74198 in reply to 74192

    Re: Strange behaviour of Uploading control

    Hi koro,
     
    Is your site on the load balancing/web farm/cloud environment? If yes, please follow the step below to set the TempDirectory. 
     
    -------------------------------------------------------------------------------------------- 
    Setting temporary file location in web.config 

    Add the following tag into the <appSettings> element of your application web.config file:
    <add key="CuteWebUI.AjaxUploader.TempDirectory" value="~/UploaderTemp"/>

    In web farm environments, the Url that you specify must map to a central location, which is saved to by all servers in the farm. This can be done using a virtual directory that maps to a common shared folder on the network.

    <add key="CuteWebUI.AjaxUploader.TempDirectory" value="\\shareserver\temp"/>
     
    --------------------------------------------------------------------------------------------   
     
    Regards,
     
    Ken 
  •  07-23-2012, 10:11 AM 74204 in reply to 74198

    Re: Strange behaviour of Uploading control

    Hello Ken,

    there is no load balancing. The SharePoint is located on my laptop (development purposes only) and I'm using \\machinename\sharename.

  •  07-24-2012, 8:40 AM 74220 in reply to 74204

    Re: Strange behaviour of Uploading control

    Do you need some other information regarding my issue?

    Please let me know.

  •  07-24-2012, 9:44 AM 74225 in reply to 74220

    Re: Strange behaviour of Uploading control

    hi koro,
     
    Please create a simple page with the code below. Does it get the same problem?
     
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7. </head>  
    8.   
    9. <script runat="server">  
    10.     
    11. </script>  
    12.   
    13. <body>  
    14.     <form id="Form1" runat="server">  
    15.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server">  
    16.         </CuteWebUI:UploadAttachments>  
    17.     </form>  
    18. </body>  
    19. </html>  
    Can you show me the full error message what you got? I can not access the images you provided.
     
    Regards,
     
    Ken 
View as RSS news feed in XML