【问题标题】:Application startup exception When Run DotMemory运行 DotMemory 时应用程序启动异常
【发布时间】:2020-08-19 08:13:55
【问题描述】:

我是使用内存泄漏分析器的初学者。 我想运行 dotMemory 分析器,但是当我选择:“运行启动项目内存分析”项时,我在命令提示符窗口中看到了这个异常,并且 jetbrains 窗口显示分析会话已完成! 我该如何解决这个问题。请帮我正确运行它...

   Application startup exception: System.IO.DirectoryNotFoundException: D:\Projects\Source\PishroPostCloudLoyalty\pishropost-core\Yara.PedEx.Administration\bin\Debug\netcoreapp2.2\wwwroot\
       at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters)
       at Yara.PedEx.Administration.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, PedExDbContext dbContext) in D:\Projects\Source\PishroPostCloudLoyalty\pishropost-core\Yara.PedEx.Administration\Startup.cs:line 155
    --- End of stack trace from previous location where exception was thrown ---
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
       at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
    Unhandled Exception: System.IO.DirectoryNotFoundException: D:\Projects\Source\PishroPostCloudLoyalty\pishropost-core\Yara.PedEx.Administration\bin\Debug\netcoreapp2.2\wwwroot\
       at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters)
       at Yara.PedEx.Administration.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, PedExDbContext dbContext) in D:\Projects\Source\PishroPostCloudLoyalty\pishropost-core\Yara.PedEx.Administration\Startup.cs:line 155
    --- End of stack trace from previous location where exception was thrown ---
       at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
       at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
       at Microsoft.AspNetCore.Hosting.Internal.WebHost.StartAsync(CancellationToken cancellationToken)
       at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String shutdownMessage)
       at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
       at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
       at Yara.PedEx.Administration.Program.Main(String[] args) in D:\Projects\Source\PishroPostCloudLoyalty\pishropost-core\Yara.PedEx.Administration\Program.cs:line 23

【问题讨论】:

  • 什么是“Yara.PedEx”?它是您在分析器下调整的应用程序吗?
  • 是的,它没有找到一些文件,但我不知道为什么?

标签: c# asp.net-core .net-core memory-leaks dotmemory


【解决方案1】:

我发现了我的问题,我想与你分享。 我在 debuge/bin 路径中没有 wwwroot 文件夹,所以我将它复制到这个路径,现在我可以使用 dotmemory :)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-07
    • 1970-01-01
    • 1970-01-01
    • 2022-10-14
    • 1970-01-01
    相关资源
    最近更新 更多