System.IO.FileNotFoundException:无法加载文件或程序集“EPPlus,版本=4.0.5.0”在 .NET 4.7 上
C# Visual Web Part 解决方案中的错误是什么?
System.IO.FileNotFoundException:“无法加载文件或程序集”EPPlus,版本=4.0.5.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1' 或其依赖项之一。系统找不到指定的文件。”
我们这里的环境非常安全,因此我们无法访问互联网来通过 NuGet Package 添加 DLL。我们有下载的 EPPlus DLL 版本,我们正在将其添加到解决方案中。一旦我们编译解决方案,就不会有例外,但是当我们运行应用程序时,它显示“无法加载文件或程序集”
What is the error in C# Visual Web Part Solution?
System.IO.FileNotFoundException: 'Could not load file or assembly 'EPPlus, Version=4.0.5.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1' or one of its dependencies. The system cannot find the file specified.'
we have very secured environment here so that's why we don't have internet access to add DLL through NuGet Package . we have the downloaded version EPPlus DLL and we are adding into the solution. once we are compiling the solution there is no exception but when we are running the application its showing 'Could not load file or assembly'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
陷入完全相同的问题!
EPPlus 对其他 DLL 有一定的依赖性!
它们可能是其他内部依赖性。由于您无法访问互联网,因此您必须更新/替换从开发环境获取的 bin 文件夹!可能还需要手动添加参考!
希望它能起作用!
或者,您可以将 dll 注册到 GAC!
Caught in Exactly the Same Problem!
EPPlus Has some dependency on other DLLs!
And their could be other internal dependency. Since you cannot have internet access, you have to update/replace the bin folder taking from the development environment! Adding reference manually might also be required!
Hope it will work!
Alternatively you can register dll to GAC!