ASP.NET
  Home arrow ASP.NET arrow Page 4 - Developing a WCF Service Library and Hosti...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Developing a WCF Service Library and Hosting it as WCF Web Service Using VS2K8
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 8
    2007-10-01

    Table of Contents:
  • Developing a WCF Service Library and Hosting it as WCF Web Service Using VS2K8
  • Creating a Windows Communication Foundation (WCF) Service Library
  • Creating a Windows Communication Foundation (WCF) Service Library: application configuration
  • Deploying and Hosting a WCF Service application (WCF web service)
  • Testing the WCF Web Service: creating the WCF Client using Windows Forms

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Developing a WCF Service Library and Hosting it as WCF Web Service Using VS2K8 - Deploying and Hosting a WCF Service application (WCF web service)


    (Page 4 of 5 )

    Once the solution is built successfully, we need to deploy/host it on IIS. Let us start with creating a Virtual Directory in IIS to host our solution. Go through the following steps to create the same in the simplest manner:

    • Go to the application folder (not the solution folder), right click on it and then click on "Properties" (fig 05).  
    • Switch to the "Security" tab and make sure that all privileges are provided for both the "ASP.NET machine account" and the "NETWORK SERVICE" accounts (fig 06).
    • Switch to "Web Sharing" and click on "Share this folder" (fig 07). 
    • Accept the "default alias" ("WCFSampleService") as follows (fig 08) and click OK twice (to apply all the properties).

    Figure 05

    Figure 06

    Figure 07

    Figure 08

    Deploying and Hosting WCF Service application (WCF web service), continued  

    Open IIS (Start || Administrative Tools || Internet Information Services Manager), and then open "Default Web Site." You should see the "WCFSampleService" configured as a web application.

    • Right click on "WCFSampleService" and go to "Properties" (fig 09).
    • Switch to the "ASP.NET" tab and select the ASP.NET version "2.0.50727" (fig 10).
    • Switch to "Directory Security," click on "Edit" of "Authentication and Access control," make "Enable anonymous access" checked (fig 11) and click OK twice to apply all the properties.
    • If the solution is configured, built and hosted properly, you should be able to access the web service from the URL http://localhost/WCFSampleService/EmpService.svc and the output should look like the following (fig 12).

     

    Figure 09

    Figure 10

    Figure 11

    Figure 12

    More ASP.NET Articles
    More By Jagadish Chaterjee


       · Hello guys,This is my first part for the series of articles on WCF. This...
       · Hello,I created a WCF service in VS2008 and when I try to browse the service in...
       · Great article! I just start doing this and learned quite a lot. I have one...
     

    ASP.NET ARTICLES

    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...
    - Completing an ASP.NET AJAX Server-Centric Ba...
    - Information Management for an ASP.NET AJAX S...
    - Comment and Order Management for an ASP.NET ...
    - Back-end Management Tasks for an ASP.NET AJA...
    - User Information Management for an ASP.NET A...
    - Adding Comments and Search to an ASP.NET AJA...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway