• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 788
  • Last Modified:

Hosting WCF in IIS

Hi!

Need some direction how to create a WCF service that it's going to be hosted in IIS.

If I just create a regular WCF service project there is no problem hosting it in IIS. But if I apply separation of concern, 3 project; Service, Proxies, and Contracts how do I solve the hosting part in IIS then?

The problem is how I should build up the service? can I use a class project and just add a .svc file? or do I need to do anything more then that?
0
ulf-jzl
Asked:
ulf-jzl
  • 4
2 Solutions
 
Kalpesh ChhatralaSoftware ConsultantCommented:
Here is Steps for Hosting WCF Service

http://www.wcftutorial.net/WCF-IIS-Hosting.aspx
0
 
ulf-jzlAuthor Commented:
I don't want to have all the code in in one project. I want to seperate the code into three projects, so how do I do that if I want to host it in IIS?
0
 
ulf-jzlAuthor Commented:
This is want I like to do:

1: Have a Web Application that hosts several WCF services in IIS
2: Apply Seperation of Consern (SOC) for the WCF services.
       - One service consists of 3 projects:
             - WcfApplication.Service  
             - WcfApplication.Proxies
             - WcfApplication.Contracts
3: I don't want to use the "Add Service Reference" in my web app, I just want to add the references as dll files and config the the rest manually.

My problem is, how do I set up the WCF service so I can have it hosted in IIS by my Web App without using "Add Service Reference" in my Web App?
0
 
ulf-jzlAuthor Commented:
0
 
ulf-jzlAuthor Commented:
Found the solution.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now