ASP.NET项目崩溃Visual Studio 2015

时间:2016-10-14 17:38:41

标签: c# asp.net visual-studio-2015

我正在运行Visual Studio 2015社区,我之前在这台机器上编辑过一个ASP.NET项目,现在每次尝试打开解决方案时都会使Visual Studio崩溃。

我尝试了以下内容:

  

devenv.exe / resetusersettings

     

devenv.exe / resetsettings

     

devenv.exe / safemode

     

devenv.exe / log

     

禁用第三方插件

     

修复Visual Studio 2015社区的安装

     

创建新项目并手动添加文件

以上都没有成功解决问题。一旦我尝试向项目添加页面,新项目就会崩溃Visual Studio。当我调试时,例外是:

  

未处理的类型' System.BadImageFormatException'发生在Microsoft.CodeAnalysis.Workspaces.dll

exception

我还尝试通过运行开发人员命令提示符并执行以下操作来禁用代码分析:set DevDivCodeAnalysisRunType=Disableddevenv.exe并且仍然遇到崩溃。

我的Visual Studio安装是最新的。我唯一没试过的是完全卸载/重新安装。在单独的Windows窗体项目中,一切正常。如上所述,同一个项目之前没有进行任何更改。

修改

运行fuslogvw.exe后,我看到一个失败的绑定日志,如下所示:

*** Assembly Binder Log Entry  (10/14/2016 @ 12:19:08 PM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.SmartDevice.Connectivity, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = devenv.exe
Calling assembly : (Unknown).
===
LOG: This is an inspection only bind.
LOG: Using application configuration file: C:\Users\dev\AppData\Local\Microsoft\VisualStudio\14.0\devenv.exe.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PublicAssemblies/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PublicAssemblies/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PublicAssemblies/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PublicAssemblies/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.SmartDevice.Connectivity.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.SmartDevice.Connectivity/Microsoft.SmartDevice.Connectivity.EXE.
LOG: All probing URLs attempted and failed.

我一直在查看的一些早期日志似乎表明其他绑定失败,所以我尝试完全删除VisualSVN,但仍然崩溃。我想我将不得不尝试完全卸载/重新安装Visual Studio,因为之前的修复安装尝试都没有成功。

0 个答案:

没有答案