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