ASP.Net调试目录监视HttpException

ASP.Net调试目录监视HttpException,asp.net,debugging,httpexception,Asp.net,Debugging,Httpexception,在调试模式下启动ASP.Net 4.0 web应用程序时,出现以下异常: System.Web.HttpException occurred Message=Invalid file name for file monitoring: 'C:\src\main-232\src\ZNode\Znode_MultiFront\Web\Controls\Cat5\Navigation'. Common reasons for failure include: - The filename is n

在调试模式下启动ASP.Net 4.0 web应用程序时,出现以下异常:

System.Web.HttpException occurred
  Message=Invalid file name for file monitoring: 'C:\src\main-232\src\ZNode\Znode_MultiFront\Web\Controls\Cat5\Navigation'. Common reasons for failure include:
- The filename is not a valid Win32 file name.
- The filename is not an absolute path.
- The filename contains wildcard characters.
- The file specified is a directory.
- Access denied.
  Source=System.Web
  ErrorCode=-2147024809
  WebEventCode=0
  StackTrace:
       at System.Web.DirectoryMonitor.AddFileMonitor(String file)
  InnerException: 

问题是,它指向的文件是一个目录,那么为什么VisualStudio2010认为它是一个文件呢?我正在本地机器上的IIS 7上运行此功能

好消息:它似乎没有任何连锁反应

坏消息是:我还没有找到原因或解决办法
解决方法:为
HttpException
(Debug->exception)禁用中断异常,并在日志中过滤掉这些异常。您仍然可以在调试模式下捕获其他HttpException,方法是在
应用程序\u错误
中放置一个断点(如果您已经实现了它,但无论如何您都应该这样做)

当我对
HttpException
进行故障排除时,在重定向到错误/索引操作时,在
应用程序\u错误
本身中出现了类似的异常。我必须取消选中调试>异常对话框中的
HttpException
,以删除此错误。然后,它按照预期重定向到错误/索引,而没有这个神秘异常的任何副作用。此时Visual studio处于调试模式

我遇到了同样的问题,通过选中选项中的
仅启用我的代码
复选框选项:
工具->选项->调试->常规
,我让它工作了。

我只是在运行ASP.NET开发服务器,并得到了这个错误。我的文件夹是[WebApp]\Controls。在VS2013中如何实现这一点?