进入函数时找不到文件系统错误
在运行一些代码时,我收到一个未找到文件且未指定文件位置或文件名的异常。如果我中断,我可以看到报告错误的函数。我可以在调用该函数之前到达断点,但无法在不引发异常的情况下进入该函数。该函数位于同一个类和 C# 代码文件中。该项目过去引用其他项目时存在问题。是否由于函数中的 with 调用而导致范围或延迟加载问题?
Visual Studio 2008,C#
欢迎任何想法,寻求答案。
While running some code I am getting a unhanded exception for file not found with no file location or file name specified. If I break I can see the function that the error is being reported from. I can reach break points before where that function is called but can't enter into the function with out the exception being thrown. The function is in the same class and C# code file. There were issues with references to other projects in the past with this project. Could it an issue of scope or delayed loading because of calls made from with in the function?
Visual Studio 2008, C#
Any ideas welcome, Answers wanted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试使用 Sysinternals 的 Procmon。它可以为您提供有关正在运行的进程的大量有用信息,包括所有文件访问尝试。
You could try using Procmon from Sysinternals. It can give you loads of useful information about a running process, including all file access attemps.
查看 fuslogvw 是否抱怨缺少程序集
look to see if fuslogvw is complaining about any missing assemblies