Server Error in '/' Application.

The process cannot access the file 'C:\home\site\wwwroot\App_Data\CRM Logs\EurCCLogfile2024-29-3.txt' because it is being used by another process.

Description: An unhandled exception occurred.

Exception Details: System.IO.IOException: The process cannot access the file 'C:\home\site\wwwroot\App_Data\CRM Logs\EurCCLogfile2024-29-3.txt' 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:\home\site\wwwroot\App_Data\CRM Logs\EurCCLogfile2024-29-3.txt' because it is being used by another process.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +935
   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) +1242
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +146
   System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) +126
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) +105
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) +31
   System.IO.File.InternalAppendAllText(String path, String contents, Encoding encoding) +65
   West.DCX.Feature.Category.Models.WestCatalogItemRenderingModel.SetCurrency(IStorefrontContext storefrontContext1) +321
   West.DCX.Feature.Category.Models.WestCatalogItemRenderingModel..ctor(IStorefrontContext storefrontContext, IItemTypeProvider itemTypeProvider, IModelProvider modelProvider, IVariantDefinitionProvider variantDefinitionProvider, ICatalogProductInfoProvider catalogProductInfoProvider, IVisitorContext visitorContext) +404
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   Microsoft.Extensions.DependencyInjection.ConstructorMatcher.CreateInstance(IServiceProvider provider) +467
   Sitecore.Commerce.XA.Foundation.Common.Models.ModelProvider.GetModel() +699
   Sitecore.Commerce.XA.Feature.Catalog.Repositories.BaseCatalogRepository.GetCatalogItemRenderingModel(IVisitorContext visitorContext, Item productItem) +738
   Sitecore.Commerce.XA.Feature.Catalog.Repositories.BaseCatalogRepository.GetProduct(IVisitorContext visitorContext) +60
   Sitecore.Commerce.XA.Feature.Catalog.Controllers.CatalogController.ProductInformation() +45
   lambda_method(Closure , ControllerBase , Object[] ) +87
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass24_0.<InvokeActionMethodWithFilters>b__0() +80
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +466
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +466
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +524


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