Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting exception "The server committed a protocol violation. Section=ResponseStatusLine" while downloading dll.

I used the bellow solution found on google.

XML
<system.net>
   <settings>
     <httpWebRequest useUnsafeHeaderParsing="true" />
   </settings>
 </system.net>


It solved the above exception. but causing some other exception can any one please help to solve this issue.


{"The process cannot access the file 'C:\\Users\\hkumar\\AppData\\Local\\Apps\\2.0\\LJMMJ58O.OT7\\
1BKMJ847.RZC\\eagle.app_c505b4a229db3779_0063.0000_a004c98a9cdbb96b\\modules\\
ICSharpCode.AvalonEdit.dll' because it is being used by another process."}

System.AggregateException was unhandled
HResult=-2146233088
Message=One or more errors occurred.
Source=mscorlib
StackTrace:
at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Eagle.Shell.EagleModuleTypeLoader.AsyncDownloadCallback(Object threadContext)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
InnerException: System.IO.IOException
HResult=-2147024864
Message=The process cannot access the file 'C:\Users\hkumar\AppData\Local\Apps\2.0\LJMMJ58O.OT7\1BKMJ847.RZC\eagle.app_c505b4a229db3779_0063.0000_a004c98a9cdbb96b\modules\Eagle.BusinessControls.PanelsBrowser.dll' because it is being used by another process.
Source=mscorlib
StackTrace:
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)
at Eagle.Shell.EagleFileLoader.ExecuteDownloadFile(Uri url, String fileName)
at Eagle.Shell.EagleModuleTypeLoader.<>c__DisplayClass9.<asyncdownloadcallback>b__2()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
InnerException:
Posted
Comments
CHill60 7-Jan-15 6:28am    
Close all applications that might be using that DLL

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900