未知模块中发生类型为“System.IO.FileNotFoundException”的未处理的异常 [英] An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module

查看:699
本文介绍了未知模块中发生类型为“System.IO.FileNotFoundException”的未处理的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发ac#应用程序,并在调试运行时发现以下错误:

I am developing a c# application and I get the following error at debug runtime:


类型为'System.IO'的未处理的异常.FileNotFoundException'
发生在未知模块中。

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.

附加信息:无法加载文件或程序集
'Autodesk.Navisworks.Timeliner.dll'或其依赖之一。
指定的模块无法找到。

Additional information: Could not load file or assembly 'Autodesk.Navisworks.Timeliner.dll' or one of its dependencies. The specified module could not be found.

Autodesk.Navisworks.Timeliner.dll在应用程序的调试文件夹中。我修复了.net框架(版本4),但它没有解决它。关于如何解决这个问题的任何想法?谢谢。

Autodesk.Navisworks.Timeliner.dll is in the debug folder of the application. I have repaired the .net framework (version 4) but it did not resolve it. Any ideas on how to resolve this issue? Thanks.

推荐答案

首先检查 - 是应用程序运行的目录的工作目录:

First check - is the working directory the directory that the application is running in:


  • 右键单击您的项目并选择属性。

  • 单击调试选项卡。

  • 确认工作目录为空或等于bin\debug目录。

如果这不是问题,那么询问Autodesk.Navisworks.Timeliner.dll是否需要另外一个不存在的DLL。
如果Timeliner.dll不是.NET程序集,则可以使用命令实用程序 DUMPBIN 确定所需的导入。

If this isn't the problem, then ask if Autodesk.Navisworks.Timeliner.dll is requiring another DLL which is not there. If Timeliner.dll is not a .NET assembly, you can determine the required imports using the command utility DUMPBIN.

dumpbin /imports Autodesk.Navisworks.Timeliner.dll

如果它是一个.NET程序集,有很多工具可以检查依赖项。

If it is a .NET assembly, there are a number of tools that can check dependencies.

反射器已经被提及,我使用Telerik的 JustDecompile



另请参阅这个问题

Reflector has already been mentioned, and I use JustDecompile from Telerik.


Also see this question

这篇关于未知模块中发生类型为“System.IO.FileNotFoundException”的未处理的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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