Skip to content

Unhandled Exception: The process cannot access the file '...\AzureDay\AzureDay-Global\src\layout\partials\header.hjs' because it is being used by another process #44

Description

@boyko-helen

OS: Windows 8
Release: v0.2

Unhandled Exception: System.AggregateException: One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (The process cannot access the file '...\AzureDay\AzureDay-Global\src\layout\partials\header.hjs' because it is being used by another process.))) ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (The process cannot access the file '...\AzureDay\AzureDay-Global\src\layout\partials\header.hjs' because it is being used by another process.)) ---> System.AggregateException: One or more errors occurred. (The process cannot access the file '...\AzureDay\AzureDay-Global\src\layout\partials\header.hjs' because it is being used by another process.) ---> System.IO.IOException: The process
cannot access the file '...\AzureDay\AzureDay-Global\src\layout\partials\header.hjs' because it is being used by another process.
   at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at SolidifyProject.Engine.Services.ContentReaderService.FileSystemTextContentReaderService`1.<LoadContentByIdAsync>d__1.MoveNext() in /opt/vsts/work/1/s/src/SolidifyProject.Engine.Services/ContentReaderService/FileSystemTextContentReaderService.cs:line 23
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at SolidifyProject.Engine.Services.TemplateService.MustacheTemplateService.loadTemplate(String name) in /opt/vsts/work/1/s/src/SolidifyProject.Engine.Services/TemplateService/MustacheTemplateService.cs:line 53
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Lazy`1.CreateValue()
   at SolidifyProject.Engine.Utils.Cache.LazyCache`1.<GetFromCacheAsync>d__4.MoveNext() in /opt/vsts/work/1/s/src/SolidifyProject.Engine.Utils/Cache/LazyCache.cs:line 24
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at SolidifyProject.Engine.Services.TemplateService.MustacheTemplateService.getTemplate(String key) in /opt/vsts/work/1/s/src/SolidifyProject.Engine.Services/TemplateService/MustacheTemplateService.cs:line 66
   at Nustache.Core.RenderContext.Include(String templateName, String indent)
   at Nustache.Core.Section.RenderParts(RenderContext context)
   at Nustache.Core.Template.Render(Object data, TextWriter writer, TemplateLocator templateLocator, RenderContextBehaviour renderContextBehaviour)
   at Nustache.Core.Render.StringToString(String template, Object data, TemplateLocator templateLocator, RenderContextBehaviour renderContextBehaviour)
   at SolidifyProject.Engine.Services.TemplateService.MustacheTemplateService.RenderTemplateAsync(String template, PageModel pageModel, ExpandoObject dataModel) in /opt/vsts/work/1/s/src/SolidifyProject.Engine.Services/TemplateService/MustacheTemplateService.cs:line 38
   at SolidifyProject.Engine.Infrastructure.Services.OrchestrationService.<ProcessPageByIdAsync>d__41.MoveNext() in /opt/vsts/work/1/s/src/SolidifyProject.Engine.Infrastructure/Services/OrchestrationService.cs:line 68
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions