【问题标题】:ASP.NET Core 1.1 web app loading error with Visual Studio 2017 RCVisual Studio 2017 RC 的 ASP.NET Core 1.1 Web 应用程序加载错误
【发布时间】:2017-01-12 21:09:08
【问题描述】:

我使用 Visual Studio 2017 RC 创建了一个解决方案,一切正常,但我关闭了解决方案并稍后重新打开它,我无法再加载 Web 应用程序项目,我遇到了错误:

项目发生错误。

值不能为空。

参数:键

该项目针对框架.NETCoreApp 1.1

这是我在日志文件中发现的错误:

=====================
12/01/2017 13:16:45
Recoverable
System.AggregateException: Une ou plusieurs erreurs se sont produites. ---> System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : key
   à Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.TreeService.EnsureNotFaultedTree(IProjectVersionedValue`1 appliedValue)
   à Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.TreeService.<PublishTreeAsync>d__66.MoveNext()
   --- Fin de la trace de la pile d'exception interne ---
---> (Exception interne #0) System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : key
   à Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.TreeService.EnsureNotFaultedTree(IProjectVersionedValue`1 appliedValue)
   à Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.TreeService.<PublishTreeAsync>d__66.MoveNext()<---

===================

翻译成英文的错误:

=====================
12/01/2017 13:16:45
Recoverable
System.AggregateException: One or several errors occurred. ---> System.ArgumentNullException: The value cannot be null.
Parameter's name : key
    Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.TreeService.EnsureNotFaultedTree(IProjectVersionedValue`1 appliedValue)
    Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.TreeService.<PublishTreeAsync>d__66.MoveNext()
   --- Fin de la trace de la pile d'exception interne ---
---> (Exception interne #0) System.ArgumentNullException: The value cannot be null.
Parameter's name : key
   Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.TreeService.EnsureNotFaultedTree(IProjectVersionedValue`1 appliedValue)
    Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.TreeService.<PublishTreeAsync>d__66.MoveNext()<---

===================

【问题讨论】:

    标签: asp.net-core visual-studio-2017


    【解决方案1】:

    解决方案已发布在 Visual Studio 开发者社区:https://developercommunity.visualstudio.com/content/problem/11125/visual-studio-2017-rc-unable-to-load-a-aspnet-core.html

    所以,这就是解决方案:

    1. 关闭 Visual Studio
    2. 删除项目的所有 binobj 对象
    3. 重新打开您的解决方案,您的 .NETCoreApp 1.1 项目将正确加载
    4. 添加 NuGet 包:Microsoft.DiaSymReader.Native,版本 1.5.0-beta2-24728

    这种操作解决了问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-03-29
      • 2018-11-05
      • 2017-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多