简体   繁体   English

运行时找不到方法错误

[英]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.

相关问题 在运行时找不到方法 - Method not found on runtime 我收到错误 Method not found: 'Void System.Runtime.InteropServices.Marshal.StructureToPtr(,,0, IntPtr, Boolean)' - I'm getting error Method not found: 'Void System.Runtime.InteropServices.Marshal.StructureToPtr(!!0, IntPtr, Boolean)' 在运行时未找到方法HttpContentExtensions.ReadAsAsync - Method HttpContentExtensions.ReadAsAsync not found runtime 运行时错误:资源字典中找不到“类型” - Runtime error: 'Type was not found' in resource dictionary 运行时错误-找不到指定的模块 - Runtime Error - The specified module could not be found 获取异常找不到方法:'System.Runtime.CompilerServices.CallSiteBinder - Getting exception Method not found: 'System.Runtime.CompilerServices.CallSiteBinder 没有使用反射的运行时C#“找不到方法”异常 - C# “Method not found” exception on runtime without usage of reflection 找不到运行时抛出方法-引用的程序集版本不匹配 - Runtime throws method not found - referenced assembly version mismatch 找不到合适的方法来覆盖错误 - No Suitable Method Found To Override error Windows服务出现“找不到方法”错误 - 'Method not found' error with Windows Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM