简体   繁体   English

类型'ServiceStack.JsonServiceClient'中的方法'Get'…没有实现

[英]Method 'Get' in type 'ServiceStack.JsonServiceClient' … does not have an implementation

We are using "ServiceStack" to read data from Rest service. 我们正在使用“ ServiceStack”从Rest服务读取数据。 Sample code: 样例代码:

string uri = "xxxxx"; (initialize uri with key)
var jsonClient = new JsonServiceClient(uri);
var obj = jconClient.Get<T>("@\r\n");

Above code is working fine in local machine, but not after deployment. 上面的代码在本地计算机上运行良好,但在部署后无法正常运行。 Error: Method 'Get' in type 'ServiceStack.JsonServiceClient' from assembly 'ServiceStack' version 4.0.40.0 ... does not have an implementation. 错误:程序集'ServiceStack'4.0.40.0版中'ServiceStack.JsonServiceClient'类型的方法'Get'没有实现。

Any help please! 请帮忙!

Thanks in advance, Phani 在此先感谢Phani

This is usually an indication that you're mixing dirty dlls with different versions together. 这通常表明您将不同版本的脏dll混合在一起。 Try uninstalling all NuGet packages, delete the NuGet /packages folder than installing all NuGet packages again and check that the /packages folder is only using the same version of ServiceStack for all its NuGet packages. 尝试卸载所有NuGet软件包,删除NuGet /packages文件夹,然后重新安装所有NuGet软件包,并检查/packages文件夹是否为其所有NuGet软件包仅使用相同版本的ServiceStack。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 方法在Servicestack Redis中没有实现 - Method does not have implementation in servicestack redis ServiceStack:如何从JsonServiceClient的Get方法获取StatusCode - ServiceStack :How to get StatusCode from JsonServiceClient Get method 什么是在Servicestack JsonServiceClient Get方法上实现重试的最佳解决方案? - Whats the best solution to implement retry on Servicestack JsonServiceClient Get method? 类型中的方法“get_Properties”没有实现 - Method 'get_Properties' in type does not have an implementation ServiceStack JsonServiceClient 响应头 - ServiceStack JsonServiceClient Response Header ServiceStack JsonServiceClient 请求不一致 - ServiceStack JsonServiceClient Requests not consistent 零星的“程序集类型中的方法&#39;get_Session&#39;没有实现” - Sporadic “Method 'get_Session' in type from assembly does not have an implementation” 为什么会收到虚假的TypeLoadException“方法 <foo> 在类型上 <bar> 从组装 <baz> 没有实现”? - Why do I get a spurious TypeLoadException “Method <foo> in type <bar> from assembly <baz> does not have an implementation”? Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension 类型中的方法“get_Info”没有实现 - Method 'get_Info' in type Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.NpgsqlOptionsExtension does not have an implementation ServiceStack.JsonServiceClient.HttpLog 未填充 - ServiceStack.JsonServiceClient.HttpLog is not populating
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM