11.07.2015 Views

y - Net Developer

y - Net Developer

y - Net Developer

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

amrameshreddy.blog.com156 CHAPTER 5 ■ HOSTING AND CONSUMING WCF SERVICESramrameshreddy.blog.comThis adds a project item for the primary output of your Windows service to the setup project.Now add a custom action to install the executable file. To add a custom action to the setupproject, follow these steps:1. In Solution Explorer, right-click the setup project, point to View, and then choose CustomActions, as shown in Figure 5-8. The Custom Actions view appears.Figure 5-8. Opening the Custom Actions view2. Right-click Custom Actions, and select Add Custom Action.3. Double-click the application folder in the list box to open it, select Primary Outputfrom the Windows service project, and click OK. The primary output is added to allfour nodes of the custom actions—Install, Commit, Rollback, and Uninstall.4. Build the setup project.When you compile the project, the output is a Microsoft Installer file (.msi) that you canuse to install the service into the Windows Service Control Manager.■Note This chapter describes the basics of building Windows services and Windows service installers.Setting your Windows services to run under the unrestricted Localsystem account or the somewhat appropriate<strong>Net</strong>work Service account is not always the best choice in terms of security best practices. Usuallyoperators have the ability to choose the credentials during setup or adjust the security identity settings afterinstallation through the Service Control Manager Management Console snap-in that can be accessedthrough Windows Computer Management. Please refer to Chapter 7 of this book, MSDN Help, or a bookdedicated to .NET development for more details and best practices regarding developing Windows services.ramrameshreddyramrameshreddyHosting Using Internet Information ServicesWeb service development on IIS has long been the domain of ASP.NET. When ASP.NET 1.0 wasreleased, a web service framework was part of it. Microsoft leveraged the ASP.NET HTTP

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!