Night Walker
Night Walker

Reputation: 21280

System.ServiceModel.dll missing in references visual studio 2010

I want to use ChannelFactory<TChannel> Class I am trying to add reference to System.ServiceModel.dll but I not see it in the references .

I see there System.ServiceModel.web.dll but it is something different .

I am using VS 2010 .net 3.5.

Any idea what is the issue here ?

Upvotes: 8

Views: 34992

Answers (3)

I tried a lot of things, but in my case I had to downgrade the version Im using. Note that System.ServiceModel.Primitives 4.10.2 is compatible with .NET 6.0, .NET Standard 1.0, .NET Framework 4.5. That will let you use it on .net Framework and .net core apps. Please refer to this web for more information: https://www.nuget.org/packages/System.ServiceModel.Primitives/4.10.2

Upvotes: 0

L Ron Hub Bub
L Ron Hub Bub

Reputation: 131

Do:

  1. Add reference.
  2. Browse, "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.ServiceModel.dll
  3. Click OK

That worked for me

Upvotes: 13

Davide Piras
Davide Piras

Reputation: 44605

right click on the project in solution explorer, properties, then check again and select .NET Framework 3.5 and not client profile, all other info you might need are here, including a helpful screenshot: Where is System.ServiceModel.Web.dll?

Upvotes: 4

Related Questions