I was creating a managed host application for WCF Service. Although it was just to write few lines of codes in console application, it took 1 hrs for me to figure out a strange problem. I followed steps as below,
And to my surprise System.ServiceModel.Web reference was missing, When I started looking for a solution on missing System.ServiceModel.Web, I found it was designed not have it in console application. Because by default, Console Application targets to .Net Framework 4 client profile and client profile does not have System.ServiceModel.Web dll So if you want to add System.ServiceModel.Web in console application, essentially you will have to change Target Framewrok of the console application. To change target framework, right click and select Properties. On the Application tab you will get option to change After changing target framework you will get System.ServiceModel.Web to add as reference in your console application project.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: