getting error when uploading the same document I have open in Word

Last post 10-18-2010, 5:38 AM by farinha. 7 replies.
Sort Posts: Previous Next
  •  10-27-2009, 3:01 PM 56723

    getting error when uploading the same document I have open in Word

    When I open up a document in word to check its contents and then try to upload that same document without first clsing Word I get the following error:
     
    Silverlight Error-open-[IO.IO_SharingViolation_File]
    Arguments:DocumentName.doc
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.40818.0&File=mscorlib.dll&Key=IO.IO_SharingViolation_File
     
     
     
    Is there any way around this?
    how can I allow the upload of files that are locked for edit?
    files that are locked for edit should still be viewable and therefore uploadable right? 
     
     
  •  10-28-2009, 9:43 AM 56749 in reply to 56723

    Re: getting error when uploading the same document I have open in Word

    Hi,
     
    Users can't upload locked files.
     
    But you can modify the error message by this way :
     
    function CuteWebUI_AjaxUploader_OnError(msg)
    {
        if(msg.indexOf("IO_SharingViolation_File")!=-1)
        {
            alert("the file is locked");
            return false;
        }
    }
  •  10-28-2009, 12:24 PM 56754 in reply to 56749

    Re: getting error when uploading the same document I have open in Word

    my understanding though is that the file is locked for editing not for viewing.
    uploading the file need only view rights so why can't I upload a file that is only locked for edit?
     
    will this functionality ever be part of your control? 
  •  10-29-2009, 12:30 AM 56760 in reply to 56754

    Re: getting error when uploading the same document I have open in Word

    Hi,
     
    That's the limitation of Silverlight addon , it do not allow our code to open a opened file.
     
    Regards,
    Terry
  •  11-03-2009, 10:29 AM 56870 in reply to 56760

    Re: getting error when uploading the same document I have open in Word

    does this mean that I can upload opened files if i force the control to function in flash mode?
  •  11-08-2009, 8:22 PM 56968 in reply to 56870

    Re: getting error when uploading the same document I have open in Word

    Yes.
     
    I had tested it . You can try it.
     
    Regards,
    Terry
  •  12-30-2009, 12:39 PM 57991 in reply to 56968

    Re: getting error when uploading the same document I have open in Word

    Hi,
     
    I have similar question for files that are currently openned when trying to upload.  I am trying to use the OnError handler you described in the previous response, but that event does not seem to be firing, nor is it in the documentation for the uploader global events.
     
    So basically, I'd like to generate a friendly error if the file is in use and also remove it from the upload queue.
  •  10-18-2010, 5:38 AM 64467 in reply to 56968

    Re: getting error when uploading the same document I have open in Word

    I was getting the same error and it was indeed gone after I forced the control to use Flash:
     
    uploader.UploadType = UploadType.Flash;
     
    My question now is this:
    What happens if the user doesn't have Flash installed? Does it fall back to Silverlight? Or does it simply fail? 

    António Farinha
    http://antoniofarinha.com
View as RSS news feed in XML