类型'System.IO.FileNotFoundException的未处理的异常出现在未知模块 [英] An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module

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

问题描述

我在开发C#应用程序,我碰到下面的错误在调试运行时:

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是在应用程序的debug文件夹。我修好了.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.

反射已经提到了,我用 JustDecompile Telerik的距离。



也看到的这个问题

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


Also see this question

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

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