神秘的例外“找不到文件'D:\xxxx\bin\Debug\xxx.vshost.exe.config'。” [英] mysterious exception "Could not find file 'D:\xxxx\bin\Debug\xxx.vshost.exe.config'."

查看:122
本文介绍了神秘的例外“找不到文件'D:\xxxx\bin\Debug\xxx.vshost.exe.config'。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是WPF和.NET的新手。我有一个WPF应用程序,其他人早些时候写过,AFAI记得它的工作时间很好。但是今天在尝试构建应用程序并从调试器运行时,我看到这个神秘的错误:
异常:找不到文件'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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆