cwm9
cwm9

Reputation: 773

Missing namespace ServiceClient (ServiceStack.ServiceClient.Web) using VS2013 with ServiceStack.Client package v.4.0.3

I'm fairly new to C#, Visual Studio, and totally new to ServiceStack. I'm trying to create a ServiceStack.ServiceClient.Web.JsonServiceClient object, but I get the error:

The type or namespace name 'ServiceClient' does not exist in the namespace
'ServiceStack' (are you missing an assembly reference?)

I have used the nuGet add-on's Library Package Manager to install the "Service Clients for ServiceStack" v4.0.3 package (id:ServiceStack.Client), verified that my target framerwork is ".NET Framework 4.5", and included

using ServiceStack.ServiceClient.Web;

at the top of my code. What am I missing?

Thanks.

Upvotes: 4

Views: 2059

Answers (1)

mythz
mythz

Reputation: 143319

You're using the just released v4 of ServiceStack which is a breaking release with significant changes that requires additional development effort to upgrade to.

Here are NuGet instructions to remain on ServiceStack V3.

Upvotes: 5

Related Questions