System.IO.FileNotFoundException 在 Program.Main()
System.IO.FileNotFoundException at Program.Main()
通常我修复这个错误没有任何问题,但在这种情况下我根本找不到这个异常的原因。
在 evenviewer 中它只是说:
Framework Version: v4.0.30319 Description: The process was terminated
due to an unhandled exception. Exception Info:
System.IO.FileNotFoundException at Program.Main()
因为我没有在 Main() 中做任何与文件系统相关的事情。我尝试通过在每行执行后弹出几个消息框来调试,但即使第一行是一个简单的消息框,其中包含 "hello",它也会因同样的错误而崩溃。
异常在 Main
中,但它可能不会出现在您的代码中,但它是由您的代码引起的。
似乎缺少一个必需的 dll。您可以使用 Process Explorer that will log all the dll's that are loaded and investigate on which one the exception occurs or try FusLogVw 尝试 运行 这个应用程序,它应该也会告诉您缺少什么。
通常我修复这个错误没有任何问题,但在这种情况下我根本找不到这个异常的原因。
在 evenviewer 中它只是说:
Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException at Program.Main()
因为我没有在 Main() 中做任何与文件系统相关的事情。我尝试通过在每行执行后弹出几个消息框来调试,但即使第一行是一个简单的消息框,其中包含 "hello",它也会因同样的错误而崩溃。
异常在 Main
中,但它可能不会出现在您的代码中,但它是由您的代码引起的。
似乎缺少一个必需的 dll。您可以使用 Process Explorer that will log all the dll's that are loaded and investigate on which one the exception occurs or try FusLogVw 尝试 运行 这个应用程序,它应该也会告诉您缺少什么。