Hosting WCF in IIS(9 Steps)

These are the 9 Different steps to Host WCF Application in IIS.

1. Create a Strong Name File - In order to get a Public Key

2. Copy the DLL in the Bin Folder to the Global Assembly Folder

3. Get the name including PublicKeyToken of the DLL

eg: Test.WCF, Version=1.0.0.0, Culture=neutral, PublicKeyToken=someToken

- Get it from the Properties of the DLL in the Global Assembly Cache -

4. Add it to the svc File

eg:

<%@ServiceHost Language="C#" Debug="true" 

Service="Test.WCF.TestService,Test.WCF, 

Version=1.0.0.0, Culture=neutral, PublicKeyToken=51dc0966f715a3f8" %>

5. Create a New Folder in IIS (intpub/wwwroot)

6. Copy the essential files from the project folder to the created New Folder

7. Set Permission to the folder via IIS

8. Run resetiis command

9. Test the Web Service

Comments

Popular posts from this blog

Specify port number in ASP.NET Development Server

Server Variables in .Net Web Application

Free Windows Azure Exam