无法加载文件或程序,公钥=空 [英] Could not load file or assembly, PublicKeyToken=null

查看:173
本文介绍了无法加载文件或程序,公钥=空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法加载文件或程序集NCrawler.Geck​​oProcessor,
版本= 3.0.0.0,文化=中性公钥= null或它
依赖关系之一。

Could not load file or assembly 'NCrawler.GeckoProcessor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

当我称之为 CrawlUsingGeckoProcessor.Run();

这是什么意思?我可以点击转到定义,我可以看到运行()方法。

What does this mean? I can click "go to definition" and I can see the Run() method.

推荐答案

这个错误通常意味着该组件没有被发现。
尝试验证该文件在运行应用程序的目录存在。

This error usually means that the assembly was not found. Try verifying that the file exists in the directory where your application is running.

如果您仍然无法找出哪个文件加载失败,请尝试使用工具,如融合日志查看器(运行 fuslogvw.exe 从Visual Studio命令提示符),以确定哪些文件在CLR试图加载和来自哪里,这样就可以看到什么失败。

If you still can't figure out which file fails loading, try using a tool such as Fusion Log Viewer (run fuslogvw.exe from the Visual Studio command prompt), to determine which files the CLR was trying to load and from where, so that you can see exactly what failed.

这篇关于无法加载文件或程序,公钥=空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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