VS 2010失败调试:在LoadControl文件监控HttpException无效的文件名 [英] VS 2010 fails debugging: HttpException invalid file name for file monitoring in LoadControl

查看:205
本文介绍了VS 2010失败调试:在LoadControl文件监控HttpException无效的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的一直在挣扎了好几天在这个问题上。

I've really been struggling for days on this matter.

我已经迁移VS2010中的一个asp.net 3.5项目,一个asp.net 4项目。一切都工作得很好了好几个星期。

I have migrated a asp.net 3.5 project in VS2010 to a asp.net 4 project. Everything worked fine for several weeks.

不知怎的,我得到一个奇怪的错误,因为几天。为了澄清这一项目如下:

Somehow, I get a strange error since a few days. To clarify what this project looks like:

应用

这是一个基于用户控件的应用程序和应用程序方面是由嵌套的用户控件层次结构,即加载自己的孩子控制了的OnInit中(),以获取事件系统的工作。

It's a UserControl based application and the app areas are composed of nested UserControl Hierarchies, that load their children Controls in OnInit(), in order to get the event system to work.

(注:一切都在VS2008的伟大工程和.net 3.5!)

(Note: everything works great in VS2008 and .net 3.5!)

的错误

现在,当我开始调试在VS2010的web应用,有时(!),一个HttpException被抛出,与消息:

Now when I start debugging the webapplication in VS2010, sometimes (!!!), a HttpException is thrown, with the message:

无效的文件名的文件监控。

Invalid file name for file monitoring.

LoadControl()< - 现在它变得有趣,为LoadControl参数是〜/ prefixed用户控件路径如。 〜/控制/首页/ Partial.ascx但在例外它显示为一个目录,在目录控制的地方。

in LoadControl()<- and now it gets interesting, the parameter for LoadControl is a ~/ prefixed UserControl-Path eg. ~/Controls/Home/Partial.ascx BUT in the Exception it is shown as a Directory, somewhere in the Controls Directory.

大概VS采用这样的做法在内部跟踪修改过的文件重新加载?

Probably VS uses such an approach to internally track changed files to reload?

有没有人遇到过同样的问题?如果是这样,也有过任何的解决方案?

Has anyone encountered the same issue? If so, have there been any solutions?

修改:在部署web应用时,错误消失。调试时,它只发生。我已经目前在调试 - >例外菜单禁用HttpExceptions。但我会很高兴赶上那些过于再次..

Edit: when deploying the webapplication, the error vanishes. It only occurs when debugging. I have currently disabled HttpExceptions in the debug->exceptions menu. But i would be very glad to catch those again too ..

推荐答案

错误最终再次发生,但现在我发现,您可以通过恢复的启用仅我的code规避问题在选项选项:工具 - &GT;选项 - &GT; Debugging-&gt;常规,这其实原先推出的破碎调试行为

The error eventually happened again, but now i found that you can circumvent the issue by reverting the Enable Just My Code option in the Options: Tools->Options->Debugging->General, which in fact originally had introduced the broken debugging behavior.

选项启用仅我的code 必须设置。

这篇关于VS 2010失败调试:在LoadControl文件监控HttpException无效的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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