Solved

Hosting WCF in IIS

Posted on 2011-03-03
5
773 Views
Last Modified: 2012-05-11
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
Comment
Question by:ulf-jzl
  • 4
5 Comments
 
LVL 16

Accepted Solution

by:
Kalpesh Chhatrala earned 500 total points
ID: 35028264
Here is Steps for Hosting WCF Service

http://www.wcftutorial.net/WCF-IIS-Hosting.aspx
0
 

Author Comment

by:ulf-jzl
ID: 35028481
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
 

Author Comment

by:ulf-jzl
ID: 35029368
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
 

Assisted Solution

by:ulf-jzl
ulf-jzl earned 0 total points
ID: 35095142
0
 

Author Closing Comment

by:ulf-jzl
ID: 35135823
Found the solution.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Long URL in SMS 6 31
XML & .net 5 40
C# replace string in void with dR["myData"].ToString() 3 39
Syntax Error 2 42
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now