Posted By: Cliff Simpkins | Sep 3rd, 2008 @ 8:00 AM | 41,630 Views | 7 Comments
Welcome to the latest video in the weekly WF/WCF Screencast series.

In this short video, CSD MVP Aaron Skonnard from PluralSight guides the viewer through how to self-host your WCF Service. The screencast walks you through adding an existing service (see the creating your first WCF service screencast on how to create one) to a new console application. In this screencast, we create a new console application project, and add the code needed to reference the service and host WCF endpoints. Aaron then walks you through how to add (and configure) the proper configuration information (refer to how to configure your your WCF Service with endpoints screencast for more information). Along the way, Aaron introduces how to work with the hosted endpoints programmatically.

For additional information on WCF, please check out the WCF Dev Center on MSDN and the .NET Endpoint team blog. For more information on classes offered by Aaron and the PluralSight folks, check out their catalog of instructor led courses and new online courses that cover a variety of Microsoft technologies, ranging from .NET v3.5 to WSS to BizTalk server.
Media Downloads:
Rating:
3
1
Just after the 7:00 mark in the video the presenter runs into an unhandled exception. He stops the video to fix it, but we have no idea what he did. It looks like the instance of the service is still running and grabbing port 8080 first. How does he fix this?
I noticed it too. I think the error was because there are endpoints with the same Port number in the other solution. Its just a guess.
Aaron didn't do anything, and as said he just hit Ctrl+f5. I did the same and it didn't throw up any exception. But an explanation from Aaron on the cause of this would be great.
Thanks for posting.
I'm sure you are right about the Port number. I know there is a way to have multiple endpoints on the same port number. For this demo you are correct, he just 'ignored' the error by hitting ctrl+f5. I thought there might have been some more simple that I was missing.
Thanks
Hi Aaron,
 The videos are simply superb !  It would be really nice if you could explain how to fix the error when you tried to launch the service using F5.

Hi Everyone!

You can find Solution of the problem with explanation of its originin in the article

Preventing the WCF Service Host from launching in Visual Studio 2008

at Rick Rainey's Blog

at http://blogs.msdn.com/rickrain/archive/2008/02/14/Preventing-the-WCF-Service-Host-from-launching-in-Visual-Studio-2008.aspx

Good luck!

 

hi can any body help me in this video as I am not able to add the the reference name in my code that " using evalserviceLibrary" even I added the refernce to the application. so I am getting exception in the line

servicehost host = new servicehost(typeof(evalservice);

 

please help me

By default the WcfServieLibrary project you have will run it's own WCF host when any project in the solution starts.  To disable it, right click on the Wcf project, select properties, select the tab "Wcf Options", and then uncheck "Start WCF Service Host ...."  Save the change and try again.

 

Microsoft Communities