简体   繁体   中英

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

We are using "ServiceStack" to read data from Rest service. 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.

Any help please!

Thanks in advance, Phani

This is usually an indication that you're mixing dirty dlls with different versions together. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM