NopCommerce 4.20
Clean version source code.
while open product page for edit:
System.IO.IOException
HResult=0x80070020
Message=The process cannot access the file 'C:\PD\BSOE\nopCommerce_4.20_Beta_Source\Presentation\Nop.Web\wwwroot\images\thumbs\default-image_100.png' because it is being used by another process.
Source=System.Private.CoreLib
StackTrace:
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes)
at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
at Nop.Core.Infrastructure.NopFileProvider.WriteAllBytes(String filePath, Byte[] bytes) in C:\PD\BSOE\nopCommerce_4.20_Beta_Source\Libraries\Nop.Core\Infrastructure\NopFileProvider.cs:line 517
at Nop.Services.Media.PictureService.SaveThumb(String thumbFilePath, String thumbFileName, String mimeType, Byte[] binary) in C:\PD\BSOE\nopCommerce_4.20_Beta_Source\Libraries\Nop.Services\Media\PictureService.cs:line 326
at Nop.Services.Media.PictureService.GetDefaultPictureUrl(Int32 targetSize, PictureType defaultPictureType, String storeLocation) in C:\PD\BSOE\nopCommerce_4.20_Beta_Source\Libraries\Nop.Services\Media\PictureService.cs:line 509
at Nop.Services.Media.PictureService.GetPictureUrl(Picture picture, Int32 targetSize, Boolean showDefaultPicture, String storeLocation, PictureType defaultPictureType) in C:\PD\BSOE\nopCommerce_4.20_Beta_Source\Libraries\Nop.Services\Media\PictureService.cs:line 553
at Nop.Services.Media.PictureService.GetPictureUrl(Int32 pictureId, Int32 targetSize, Boolean showDefaultPicture, String storeLocation, PictureType defaultPictureType) in C:\PD\BSOE\nopCommerce_4.20_Beta_Source\Libraries\Nop.Services\Media\PictureService.cs:line 534
at AspNetCore.Areas_Admin_Views_Shared_EditorTemplates_Picture.<ExecuteAsync>d__9.MoveNext() in C:\PD\BSOE\nopCommerce_4.20_Beta_Source\Presentation\Nop.Web\Areas\Admin\Views\Shared\EditorTemplates\Picture.cshtml:line 27
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.<RenderPageCoreAsync>d__20.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.<RenderPageAsync>d__19.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.<RenderAsync>d__18.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.TemplateRenderer.Render()
at Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.TemplateBuilder.Build()
at Nop.Web.Framework.TagHelpers.Admin.NopEditorTagHelper.Process(TagHelperContext context, TagHelperOutput output) in C:\PD\BSOE\nopCommerce_4.20_Beta_Source\Presentation\Nop.Web.Framework\TagHelpers\Admin\NopEditorTagHelper.cs:line 162
at Microsoft.AspNetCore.Razor.TagHelpers.TagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>d__0.MoveNext()
https://1drv.ms/u/s!AvRuS0ror29dgpE8k0Tc3uZbtxq0SA