Close

Profile: jaysamta

Avatar

User posts

Bugs
2 months ago

Hello,

i am facing this error daily with custom css.

NopCommerce Version : 4.10

The process cannot access the file.

System.IO.IOException: The process cannot access the file.

C:\....\Themes\Urban\Content\css\theme.custom-21.css' because it is being used by another process.
   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.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path)
   at System.IO.File.WriteAllText(String path, String contents)
   at SevenSpikes.Nop.Framework.Helpers.CustomCssHelper.CreateCustomStyleFiles(String pluginSystemName, String themeFolderName)