Server Error in '/' Application.

Could not find a part of the path 'D:\dynamicweb.net\Solutions\Skabertrang\fsr.cloud.dynamicweb-cms.com\files\Images\Kurser og uddannelse\Undervisere'.

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.DirectoryNotFoundException: Could not find a part of the path 'D:\dynamicweb.net\Solutions\Skabertrang\fsr.cloud.dynamicweb-cms.com\files\Images\Kurser og uddannelse\Undervisere'.

Source Error:


Line 300:                            string imageFilePath = null;
Line 301:
Line 302:                            foreach (var file in Directory.EnumerateFiles(serverPath, $"{imageFileName}.*", SearchOption.TopDirectoryOnly)) {
Line 303:
Line 304:                                string fileExtension = Path.GetExtension(file);

Source File: D:\dynamicweb.net\Solutions\Skabertrang\fsr.cloud.dynamicweb-cms.com\files\Templates\Designs\Web2020\eCom\ProductCatalog\ProductViewDetail.cshtml    Line: 302

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\dynamicweb.net\Solutions\Skabertrang\fsr.cloud.dynamicweb-cms.com\files\Images\Kurser og uddannelse\Undervisere'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   System.IO.FileSystemEnumerableIterator`1.CommonInit() +421
   System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) +515
   System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption) +125
   CompiledRazorTemplates.Dynamic.RazorEngine_196e66516f164f3d816face971160a8b.Execute() in D:\dynamicweb.net\Solutions\Skabertrang\fsr.cloud.dynamicweb-cms.com\files\Templates\Designs\Web2020\eCom\ProductCatalog\ProductViewDetail.cshtml:302
   RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader) +212
   RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) +89
   RazorEngine.Templating.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer) +100
   RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) +69
   Dynamicweb.Rendering.Template.RenderRazorTemplate() +3502
   Dynamicweb.Rendering.Template.Output() +397
   Dynamicweb.Ecommerce.ProductCatalog.ProductCatalogFrontend.GetContent() +289
   Dynamicweb.Frontend.Content.GetModuleOutput(Paragraph paragraph, PageView pageview) +932
   System.Lazy`1.CreateValue() +734
   System.Lazy`1.LazyInitValue() +189
   CompiledRazorTemplates.Dynamic.RazorEngine_27cd3b7d50334d01aaece6b34f0a52aa.Execute() in D:\dynamicweb.net\Solutions\Skabertrang\fsr.cloud.dynamicweb-cms.com\files\Templates\Designs\Web2020\Paragraph\Paragraph.cshtml:153
   RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader) +212
   RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) +89
   RazorEngine.Templating.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer) +100
   RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) +69
   Dynamicweb.Rendering.Template.RenderRazorTemplate() +3502
   Dynamicweb.Rendering.Template.Output() +397
   Dynamicweb.Frontend.Content.RenderParagraph(Paragraph paragraph, ContainerInfo containerInfo, Layout layout) +1692
   Dynamicweb.Frontend.Content.CreateContent(IList`1 paragraphs) +1717
   Dynamicweb.Frontend.Content.CreateContent(Int32 contentId) +271
   Dynamicweb.Frontend.PageViewModel.CreateInstance(PageView pageView) +205
   Dynamicweb.Frontend.PageView.SetPageTemplateValues() +93
   Dynamicweb.Frontend.PageView.Output() +1033
   Dynamicweb.Frontend.DynamicwebHttpHandler.ProcessRequest(HttpContext context) +149
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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