【问题标题】:Unable to launch MVC project (Unable to connect)无法启动 MVC 项目(无法连接)
【发布时间】:2018-07-24 09:04:23
【问题描述】:

我的项目大部分时间都在运行,好几次都出现问题,所以我知道一些修复步骤,但仍然无法修复。

现在我已经有大约两个星期没有构建项目了,现在我无法调试它.. 或连接到 iisexpress 或其他东西..

这是我已经尝试过的:

  • 删除 .vs bin 和 obj 等文件夹
  • 清理和重建项目
  • 创建虚拟目录
  • 更改项目的端口
  • 清空符号缓存并设置 Microsoft 符号服务器
  • 重新安装 IISExpress
  • 修复整个 Visual Studio
  • VS 正在以管理员身份运行

构建没有错误,但有很多无法找到或打开 PDB 文件消息。 如果我按 ctrl+f5,项目就会运行

编辑: 我现在可以看到一些奇怪的东西,它在几次重新加载或前进和后退后加载了我的页面。似乎响应时间太长,但如果我在 VS 中查看诊断,它占用了 12MB 的 RAM 和 0% 的 CPU ..

有没有人遇到过这样的事情???

编辑 2: 我在检查 microsoft 符号服务器时运行了一次,但当我停止时它不会再次启动,我真的不知道该怎么做。

输出窗口:

'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iisexpress.exe'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\AVAST Software\Avast\x64\aswhooka.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\AcLayers.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\sfc.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Unloaded 'C:\Windows\System32\sfc.dll'
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\winspool.drv'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\sfc.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\sfc_os.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\fltLib.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\rtinfo.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iisexpresshelper.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iisutil2.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\nativrd2.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\xmllite.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\ktmw32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\dpapi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iisres.dll'. Module was built without symbols.
'iisexpress.exe' (Win32): Unloaded 'C:\Program Files\IIS Express\iisres.dll'
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iisres.dll'. Module was built without symbols.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\mlang.dll'. Cannot find or open the PDB file.
The thread 0x10e0 has exited with code 0 (0x0).
The thread 0xc28 has exited with code 0 (0x0).
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\hwebcore.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\w3wphost.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\mscoree.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\msvcr120_clr0400.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iiscore.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\normaliz.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\w3tp.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\w3dt.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\secur32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\httpapi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\rasadhlp.dll'. Cannot find or open the PDB file.
The thread 0xdf0 has exited with code 0 (0x0).
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\FWPUCLNT.DLL'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\loghttp.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\cachuri.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\cachtokn.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\compdyn.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\compstat.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\defdoc.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\dirlist.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\protsup.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\redirect.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iis_ssi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\static.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\authanon.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\authcert.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\urlauthz.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\authbas.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\authsspi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\netapi32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\netutils.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\wkscli.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\authmap.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iprestr.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\diprestr.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\modrqflt.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\logcust.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\custerr.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iisfreb.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iisreqs.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\wsock32.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\isapi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\filter.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\cgi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iisfcgi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\rewrite.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\validcfg.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\iiswsock.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\webmatrixsup.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\webengine4.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\psapi.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\userenv.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\warmup.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Program Files\IIS Express\aspnetcore.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\winhttp.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Loaded 'C:\Windows\System32\OnDemandConnRouteHelper.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (Win32): Unloaded 'C:\Windows\System32\OnDemandConnRouteHelper.dll'

【问题讨论】:

  • " 无法调试它.. 或连接到 iisexpress 或其他东西" 和 "很多无法找到或打开 PDB 文件消息" 不是您的问题的解释。请花时间解释您的问题并发布确切的错误消息
  • 浏览器中除了“无法连接”之外没有错误信息。我已经编辑了问题并添加了一些新的观察结果..
  • @j.j.a.c.k.第二段之后的所有内容都没有帮助。如果 IIS Express 未运行,则无法连接。 可以您首先构建您的项目吗?您是否按 F5 开始调试,我假设使用 IIS Express?如果您的项目崩溃,浏览器将无法连接
  • 顺便说一句,重新安装 Visual Studio、IIS Express、修改系统可能会导致 更多 问题并且不会修复损坏的项目。你能创建一个new项目吗?你能运行它吗?
  • 您是否尝试过运行它没有调试(CTRL-F5)。我很确定 PDB 只是一个调试工具

标签: visual-studio debugging model-view-controller


【解决方案1】:

在 Visual Studio 中转到 Tools->Options->Debugging->Symbols 并选择 Microsoft Symbol servers,它会尝试为您下载正确的 pdb 文件。您也可以从“调试模块”窗口手动加载它。

参考:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/6814e9de-b1b7-4012-af7b-d99758fa3013/getting-error-cannot-find-or-open-pdb-fle-when-debugging-in-visual-studio?forum=TFService

在项目属性->Web 中取消选中“本机调试”,然后在此处检查 ASP.NET 调试器。

【讨论】:

  • 已经尝试了所有最终下载的 pdb 文件,但 iisexpress pdb 文件仍然无法加载..这可能是我认为的问题..
  • @j.j.a.c.k.,您能在缓存文件夹中找到符号/程序集吗?您可以从“调试模块”窗口手动加载它吗? msdn.microsoft.com/en-us/library/…,也请以管理员身份运行你的VS。
猜你喜欢
  • 2018-02-22
  • 1970-01-01
  • 1970-01-01
  • 2017-10-15
  • 2022-01-12
  • 2020-09-09
  • 2017-10-13
相关资源
最近更新 更多