无法加载文件或程序集,PublicKeyToken=null [英] Could not load file or assembly, PublicKeyToken=null
问题描述
无法加载文件或程序集NCrawler.GeckoProcessor,版本=3.0.0.0,文化=中性,PublicKeyToken=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();
这是什么意思?我可以单击转到定义",然后我可以看到 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.
如果您仍然无法确定哪个文件加载失败,请尝试使用 Fusion Log Viewer 等工具(从 Visual Studio 命令提示符运行 fuslogvw.exe
),以确定哪些文件加载失败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.
这篇关于无法加载文件或程序集,PublicKeyToken=null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!