Link to home
Start Free TrialLog in
Avatar of ulf-jzl
ulf-jzlFlag for Sweden

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Kalpesh Chhatrala
Kalpesh Chhatrala
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ulf-jzl

ASKER

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?
Avatar of ulf-jzl

ASKER

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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ulf-jzl

ASKER

Found the solution.