File Violation Error

10 posts, 0 answers
  1. Sanjivani
    Sanjivani avatar
    13 posts
    Member since:
    Nov 2010

    Posted 07 Jan 2011 Link to this post

    Hi,

    I am getting following error while uploading files. To reproduce the issue, select multiple files and make sure that one of the file is open.

    Please help me in handling this issue.

    Microsoft JScript runtime error: Unhandled Error in Silverlight Application [IO.IO_SharingViolation_File]
    Arguments: up-5.docx
    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=4.0.51204.0&File=mscorlib.dll&Key=IO.IO_SharingViolation_File   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
       at System.IO.FileInfo.OpenRead()
       at UploadPrototype.UploadContext.GetCurrentChunk()
       at UploadPrototype.MainPage.UploadRequest(StreamWriter writer, UploadContext context, Stream requestStream)
       at UploadPrototype.MainPage.ProcessRequest(IAsyncResult asyncResult)
       at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass9.<InvokeGetRequestStreamCallback>b__7(Object state2)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
  2. Sanjivani
    Sanjivani avatar
    13 posts
    Member since:
    Nov 2010

    Posted 07 Jan 2011 Link to this post

    I could capture the error as below but not sure how to suppress the error using set_handled()

     function FileUploadFailed(sender, eventArgs) {                     eventArgs.set_handled();                           }
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 07 Jan 2011 Link to this post

    Hi Sanjivani,

    Invoke the set_handled with a true parameter, like this:

    args.set_handled(true);

    Greetings,
    Genady Sergeev
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  5. Sanjivani
    Sanjivani avatar
    13 posts
    Member since:
    Nov 2010

    Posted 07 Jan 2011 Link to this post

    Thank you. It seems it is stopping subsequent errors. But still left with one more problem. If I upload multiple files and lets say second file is in use, then second file shows red bullet and the files next to second file keep on blinking and never stops uploading.

    Any way to make remaining files working?
  6. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 12 Jan 2011 Link to this post

    Hello Sanjivani,

    Thank you for reporting this problem to us. We have just fixed the issue and the fix is going to be available together with the upcoming Service Pack 2 release. I've also updated your telerik points as a token of gratitude for reporting this to us.

    Regards,
    Genady Sergeev
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  7. Sanjivani
    Sanjivani avatar
    13 posts
    Member since:
    Nov 2010

    Posted 14 Jan 2011 Link to this post

    Thank you Genady.
    Looking forward to it.

    Regards
    Sanjivani
  8. Sashi
    Sashi avatar
    5 posts
    Member since:
    Mar 2013

    Posted 28 Mar 2013 Link to this post

    Hi, Has this issue been addressed?. If so, could you please let me know the version info?...I just downloaded the latest Trail version and I can repro this error...The Version# on the Telerik.Web.UI is 2013.1.220.35


    Thanks,
    -Sashi.
  9. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 02 Apr 2013 Link to this post

    Hello,

    This used to happen in the Silverlight version. As of now, Silverlight is only supported under IE7/8/9.
    Please check whether the problem still prominent.

    All the best,
    Hristo Valyavicharski
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  10. Sashi
    Sashi avatar
    5 posts
    Member since:
    Mar 2013

    Posted 02 Apr 2013 Link to this post

    In my case it had to do with the IE-compatibility...

    Event thought I was using IE 10, the response was always being rendered in IE7 compatibility mode. The locked multiple attachments using the RadAsyncUpload failed with the IO.IO_SharingViolation_File exception.

    Adding the following to the web.config under <system.webServer>  resolved the issue...

            <httpProtocol>       
                <
    customHeaders>         
                    <
    add name="X-UA-Compatible" value="IE=Edge"/>       
                </
    customHeaders>     
    </
    httpProtocol>
  11. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 05 Apr 2013 Link to this post

    Hi Sashi,

    Thank you for sharing your solution with the community. 

    Regards,
    Hristo Valyavicharski
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017