[英]Method Not Found Error at runtime
I have a project that make a call to a method in another library. 我有一个项目可以调用另一个库中的方法。 When I run locally everything works.
当我在本地运行时,一切正常。 Once I deploy to dev server, the method in the other library is not found and causes a runtime error.
部署到开发服务器后,找不到其他库中的方法,并导致运行时错误。 I have checked the library has property to Copy Local set to true.
我已经检查了图书馆的“复制本地”属性设置为true。 I checked the version of the file locally and on dev server and they match.
我在本地和开发服务器上检查了文件的版本,它们是否匹配。 The library was added through NuGet and is the most recent version.
该库是通过NuGet添加的,并且是最新版本。
Any ideas what would cause the method to not be found after being published? 有什么想法会导致该方法在发布后找不到?
EDIT: The library is company library on private nuget server 编辑:该库是私有nuget服务器上的公司库
Try JustDecompile or another decompilation tool to check the content of your DLL on the dev system. 尝试使用JustDecompile或其他反编译工具来检查开发系统上DLL的内容。 Maybe (as said before by Biscuits) it's a GAC problem.
也许(正如Biscuits之前所说),这是GAC问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.