Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need WCF Host Learning Project

Posted on 2013-06-18
6
Medium Priority
?
204 Views
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?
0
Comment
Question by:WorknHardr
[X]
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
6 Comments
 
LVL 15

Expert Comment

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

Accepted Solution

by:
jorge_toriz earned 2000 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.
WCFConsoleHost.zip
0
 

Author Comment

by:WorknHardr
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...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Closing Comment

by:WorknHardr
ID: 39259539
danka
0
 
LVL 15

Expert Comment

by:jorge_toriz
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
0
 

Author Comment

by:WorknHardr
ID: 39260216
Thanks again
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

722 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