Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

endpoint.tv Screencast - Hosting WCF Services in Windows Services

Download

Right click “Save as…”

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 host WCF services in traditional Windows services.

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.

Tags:

Follow the Discussion

  • good video..

  • good explanation and thanks for ur video tutorials. which is helpfull for me very much......

  • anurag palanurag pal

    Good explanation  and nice tutorials for beginners.thanks for uploading this video for free use.

  • MJMJ

    I have been doing the video tutorial on WCF. However, on trying to start the service on EvalServiceHost in Services, i get the following error
    "Error 1053: The service did not respond to the start or control request in a timely fashion"

  • Notes:

    Add System.ServiceModel to bring in the WCF namespaces. Add reference to service project.

    Create a new ServiceHost(typeof(MyService)). Use host.Open() and host.Close() in OnStart and OnStop, respectively.

    Copy app.config from the WCF service library to the Windows service project, possibly editing (e.g. metadata behavior).

    In design view, right-click and "add installer". For 'serviceProcessInstaller', maybe change the account to "LocalSystem" (to register http endpoints with httpsys [whatever that means]).

    Use 'installutil' from the commandline (e.g. installutil WindowServiceHost.exe) to install the service. Then use 'services.msc' snap-in to start/stop/edit windows service. If you start the service, you can browse to the endpoint URL (e.g. http://localhost:8080/evalservice) to see the documentation and WSDL.

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.