Server Error in '/' Application.

The process cannot access the file 'C:\Web\productImagesOrig\Temp\RUSQ08LBG.jpg' because it is being used by another process.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: The process cannot access the file 'C:\Web\productImagesOrig\Temp\RUSQ08LBG.jpg' because it is being used by another process.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IOException: The process cannot access the file 'C:\Web\productImagesOrig\Temp\RUSQ08LBG.jpg' because it is being used by another process.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +893
   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) +1217
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +123
   ImageResizer.ImageBuilder.GetStreamFromSource(Object source, ResizeSettings settings, Boolean& disposeStream, String& path, Boolean& restoreStreamPosition) in C:\projects\resizer\Core\ImageBuilder.cs:279
   ImageResizer.ImageBuilder.LoadImage(Object source, ResizeSettings settings, Boolean restoreStreamPos) in C:\projects\resizer\Core\ImageBuilder.cs:156
   ImageResizer.ImageBuilder.BuildJob(ImageJob job) in C:\projects\resizer\Core\ImageBuilder.cs:435
   ImageResizer.ImageBuilder.Build(ImageJob job) in C:\projects\resizer\Core\ImageBuilder.cs:415
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings, Boolean disposeSource, Boolean addFileExtension) in C:\projects\resizer\Core\ImageBuilder.cs:396
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings, Boolean disposeSource) in C:\projects\resizer\Core\ImageBuilder.cs:380
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings) in C:\projects\resizer\Core\ImageBuilder.cs:354
   ImageResizer.<>c__DisplayClass5_0.<HandleRequest>b__1(Stream stream) in C:\projects\resizer\Core\InterceptModule.cs:187
   ImageResizer.Plugins.Basic.NoCacheHandler.ProcessRequest(HttpContext context) in C:\projects\resizer\Core\Plugins\Basic\NoCacheHandler.cs:40
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3905.0