无法在Visual Studio 2015中重新加载Asp.Net Core项目

时间:2016-02-04 22:51:04

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

删除bower包(morris)并尝试重新加载我的MVC Core应用程序后,我收到错误,应用程序无法完全重载,我只能看到DNX引用和Dependencies。我尝试恢复软件包,但没有帮助。

我正在运行RC1。

Studio将我引导至VsProjectFault_9481d3e1-ac32-4ffe-bee5-00ea5d3c38b8.failure.txt文件,其中包含以下信息:

Recoverable
System.Exception: The following error occurred during discovery of project files on disk. Access to the path 'C:\Redacted\App\bower_components\morrisjs\spec\viz\exemplary' is denied..
   at Microsoft.VisualStudio.Web.ProjectSystem.ProjectTree.SourceItemsInMemoryProject.<InitializeFromDiskAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Web.ProjectSystem.ProjectTree.SourceItemsInMemoryProject.<Creator>d__52.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.ProjectSystem.UnconfiguredProjectImpl.AutoLoadMethodStateMachine.<<StartExecution>b__6_0>d.MoveNext()

恢复应用程序需要做什么?

所有文件仍然存在于文件系统中,只是没有加载项目。

1 个答案:

答案 0 :(得分:0)

关闭Visual Studio并删除隐藏的$mail->SMTPDebug = 1; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only 文件夹,使解决方案恢复了生机。

(仅仅关闭Studio是不够的,但我确实打开了其他实例,所以也许就够了。)