神秘的例外“找不到文件'D:\xxxx\bin\Debug\xxx.vshost.exe.config'。” [英] mysterious exception "Could not find file 'D:\xxxx\bin\Debug\xxx.vshost.exe.config'."
问题描述
异常:找不到文件'D:\xxxx\bin\Debug\xxx.vshost.exe.config
我可以从外部调试器运行生成的exe。我试图从VS2008进行调试时,我得到了提到的异常。
我不知道是什么原因例外,但我想到如何解决它。
基本上我在debug->异常下启用了throw复选框,这就是开始的问题。仍然不知道为什么vshost.exe默认查找配置文件。
I am new to WPF and .net. I have a WPF app which someone else had written earlier and AFAI remember it was working just fine some time back. But today i see this mysterious error when trying to build the app and run from debugger : Exception : "Could not find file 'D:\xxxx\bin\Debug\xxx.vshost.exe.config"
I am able to run the generated exe from outside debugger. I am getting the mentioned exception ONLY when trying to debug from VS2008.
I'm not sure what is the reason for the exception but I figured how to fix it. Basically I had enabled "throw" checkbox under debug->exceptions, and that was what started the problem. Still don't know why vshost.exe looks for a config file by default.
这篇关于神秘的例外“找不到文件'D:\xxxx\bin\Debug\xxx.vshost.exe.config'。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!