简体   繁体   English

为什么我的Visual Studio会以这种方式开始行动? iisexpress无法找到或打开PDB文件

[英]Why did my Visual Studio start acting this way? iisexpress cannot find or open the PDB file

When I first created my project and ran it, I didn't get these messages: 当我第一次创建项目并运行它时,我没有收到这些消息:

'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\\Windows\\Microsoft.Net\\assembly\\GAC_32\\System.Web\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Web.dll'. 'iisexpress.exe'(CLR v4.0.30319:DefaultDomain):已加载'C:\\ Windows \\ Microsoft.Net \\ assembly \\ GAC_32 \\ System.Web \\ v4.0_4.0.0.0__b03f5f7f11d50a3a \\ System.Web.dll'。 Cannot find or open the PDB file. 无法找到或打开PDB文件。

So what did I do to my VS config, or maybe my project properties that caused this issue? 那么我对我的VS配置做了什么,或者我的项目属性导致了这个问题呢?

Before this started happening, running the application took a minute or two, now I'm waiting more like 5 mins. 在这个开始发生之前,运行应用程序需要一两分钟,现在我等了5分钟。 Which is nuts, there is something wrong with my config somewhere. 哪个是坚果,我的配置在某处出了问题。

PDB (program database) files contain debug information that is used by Visual Studio. PDB(程序数据库)文件包含Visual Studio使用的调试信息。

I would first try cleaning your solution, rebuild it in debug mode, and see if that solves your issue. 我首先尝试清理您的解决方案,在调试模式下重建它,看看是否能解决您的问题。 That should re-create your PDB's for you. 那应该为你重新创建你的PDB。

Also, If you go to Tools->Options->Debugging->Symbols in Visual Studio and select Microsoft Symbol servers, it will try to download the correct PDB's for you. 此外,如果您在Visual Studio中转到工具 - >选项 - >调试 - >符号并选择Microsoft符号服务器,它将尝试为您下载正确的PDB。 Then try rebuilding in debug mode. 然后尝试在调试模式下重建。

The most likely reason you started getting the message 您开始收到消息的最可能原因

"'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\\Windows\\Microsoft.Net\\assembly\\GAC_32\\System.Web\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Web.dll'. Cannot find or open the PDB file." “'iisexpress.exe'(CLR v4.0.30319:DefaultDomain):已加载'C:\\ Windows \\ Microsoft.Net \\ assembly \\ GAC_32 \\ System.Web \\ v4.0_4.0.0.0__b03f5f7f11d50a3a \\ System.Web.dll'。无法找到或打开PDB文件。“ is because that DLL is now being loaded during execution, and wasn't being loaded previously. 是因为该DLL现在正在执行期间加载,并且之前未加载。

The missing PDB file however is not part of your problem. 但是,丢失的PDB文件不是您的问题的一部分。 You can get rid of the warning message by obtaining this PDB file from Microsoft. 您可以通过从Microsoft获取此PDB文件来消除警告消息。 But I suggest you focus on what you did to make it start appearing (ie when you started loading System.Web.dll). 但我建议你专注于你做了什么让它开始出现(即你开始加载System.Web.dll时)。 This might help explain why it takes longer to load. 这可能有助于解释为什么加载需要更长时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2013 RC 中的“无法找到或打开 PDB 文件” - “Cannot find or open the PDB file” from Visual Studio 2013 RC IISExpress 找不到使用 Visual Studio 2013 运行本地主机的 ssl 页面 - IISExpress cannot find ssl page running localhost with Visual Studio 2013 无法找到或打开PDB文件 - PDB不是用DLL构建的 - Cannot find or open the PDB file - PDB not built with DLL VS Code中的“无法找到或打开PDB文件” - “Cannot find or open the PDB file” in VS Code VS代码“无法找到或打开PDB文件”,即使pdb存在并且加载了其他csproj pdb文件 - VS Code “Cannot find or open the PDB file” even though the pdb exists and it loads other csproj pdb files 找不到或打开PDB文件,调试本机代码 - cannot find or open PDB file, debugging native code C# 远程调试器 - 无法找到或打开 PDB 文件 - C# Remote Debugger - Cannot find or open the PDB file “无法找到或打开另一个解决方案中找到的类库的PDB文件” - “Cannot find or open the PDB file” of a class library found in another solution Visual Studio找不到数据库文件 - Visual Studio Cannot Find Database File 在使用C#接口访问SWI-Prolog时找不到或打开PDB文件消息 - Cannot find or open the PDB file message in using of C# interface to SWI-Prolog
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM