Reputation: 21280
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
Reputation: 1
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
Reputation: 131
Do:
That worked for me
Upvotes: 13
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