This is a migrated thread and some comments may be shown as answers.

File Violation Error

9 Answers 79 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Sanjivani
Top achievements
Rank 1
Sanjivani asked on 07 Jan 2011, 02:31 PM
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()

9 Answers, 1 is accepted

Sort by
0
Sanjivani
Top achievements
Rank 1
answered on 07 Jan 2011, 03:14 PM
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();                           }
0
Genady Sergeev
Telerik team
answered on 07 Jan 2011, 03:38 PM
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.
0
Sanjivani
Top achievements
Rank 1
answered on 07 Jan 2011, 04:13 PM
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?
0
Genady Sergeev
Telerik team
answered on 12 Jan 2011, 04:42 PM
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.
0
Sanjivani
Top achievements
Rank 1
answered on 14 Jan 2011, 10:24 AM
Thank you Genady.
Looking forward to it.

Regards
Sanjivani
0
Sashi
Top achievements
Rank 1
answered on 28 Mar 2013, 11:55 PM
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.
0
Hristo Valyavicharski
Telerik team
answered on 02 Apr 2013, 01:25 PM
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.
0
Sashi
Top achievements
Rank 1
answered on 02 Apr 2013, 11:36 PM

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>
0
Hristo Valyavicharski
Telerik team
answered on 05 Apr 2013, 02:51 PM
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.
Tags
AsyncUpload
Asked by
Sanjivani
Top achievements
Rank 1
Answers by
Sanjivani
Top achievements
Rank 1
Genady Sergeev
Telerik team
Sashi
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or