I'm working with VS2010 express on Win7 (64 bit) and I'm trying use System.ServiceModel
but I get an error that there is no ServiceModel
in the System
namespace:
The type or namespace name 'ServiceModel' does not exist in the namespace 'System' (are you missing an assembly reference?)
I looked in \Windows\Microsoft.NET\Framework\v4.0.30319
and there are some ServiceModel___.dll
files but I don't know if I'm missing something or if they are corrupted.
Any advice?
Thanks, Yonatan
Browse, "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3. 0\System. ServiceModel. dll.
Provides the base implementation used to create Windows Communication Foundation (WCF) client objects that can call services.
Add a reference to the assembly System.ServiceModel. Select Project-> Add Reference and then select the assembly name.
Right click on Project -> Properties -> Application -> Target Framework = .NET Framework 4.5
The System.ServiceModel
namespace is in System.ServiceModel.dll.
I'm not running 64 bit Windows so I can't check whether that's the right location.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With