ServiceStack NuGet update 4.0.22 to 4.0.31 caused errors on deployment

后端 未结 2 787
心在旅途
心在旅途 2021-01-24 22:23

I\'m hoping not to be to vague here, but I\'ve just done a NuGet update for ServiceStack, updating from version 4.0.22 to 4.0.31, the project compiles fine but once deployed to

2条回答
  •  梦毁少年i
    2021-01-24 22:48

    I had the same problem, and I believe I've traced it back to not having KB2468871 installed on some client machines. This causes weird errors such as the one you are seeing. My particular one was this:

    Method 'GetAsync' in type 'ServiceStack.JsonServiceClient' from assembly 'ServiceStack.Client, Version=4.0.30.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    

    I tried adding the System.Net reference and that didn't clear it up either.

    For now, I'm sticking with 4.0.24 (the pre-PCL version) until I can come up with a better solution, since I'm not in control of the client environment. Note that if you are using ClickOnce, you can add this particular update as a prerequisite to the bootstrap installer, but it won't have an effect on already-installed machines, thus the problem here.

提交回复
热议问题