8

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 ?

Night Walker
  • 20,638
  • 52
  • 151
  • 228

2 Answers2

13

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

Rostyslav Dzinko
  • 39,424
  • 5
  • 49
  • 62
L Ron Hub Bub
  • 131
  • 1
  • 2
  • I take it that I need to target a higher framework than v3.0 when the missing reference is: `System.ServiceModel, Version=4.0.0.0`? – Wouter Vanherck Jun 26 '18 at 07:07
4

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?

Community
  • 1
  • 1
Davide Piras
  • 43,984
  • 10
  • 98
  • 147