Need WCF Host Learning Project

Posted on 2013-06-18
Last Modified: 2013-06-19
I have found many VS solutions on the Internet which contain several projects referencing other class library projects.
I would like to find a solution containing a WFC Host console Project which runs like a real web host. Then I can add a web project to query it. Make any sense?
Question by:WorknHardr
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 15

Expert Comment

ID: 39258637
Do you want a host console project that expose a service through a binding that works with http?
LVL 15

Accepted Solution

jorge_toriz earned 500 total points
ID: 39258662
This could be the most basic project that I could do

You must modify app.config file in MathHost to change the base address and use your machine name
You can open the Visual Studio as administrator to avoid the use of netsh to be able to run the program
If you don't want to run Visual Studio as administrator then here is the netsh command: netsh http add urlacl url=http://+:8001/ user=YourUserName

After executing the host you must add the reference to your hosted service to be able to test the project that I put in the ZIP, experts-exchange interface didn't allow me to include several "dangerous" files in the ZIP.

Author Comment

ID: 39259343
>>Do you want a host console project that expose a service through a binding that works with http?

Yes! I need the http access to test REST...
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now


Author Closing Comment

ID: 39259539
LVL 15

Expert Comment

ID: 39259734
Well, if you want to use REST you will need to change the binding to webHttpBinding and the host must be a WebServiceHost, this class is located in System.ServiceModel.Web assembly

Author Comment

ID: 39260216
Thanks again

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor ( Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question