Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

query regarding the wcf hosting option

Posted on 2011-09-29
4
Medium Priority
?
327 Views
Last Modified: 2012-06-27
Hi

There are three options of hosting the wcf applications

1. Console(or windows application)
2, Windows service
3. IIS

Now if I create a wcf service and in the console application I just add the service reference and use the function then which of the following options I am using for hosting the service.

Kindly advice

Regards
Karan Gupta
0
Comment
Question by:KaranGupta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36813597
I prefer IIS server to host the service.

Advantages:
Automatic Activation:

In IIS the Service do not keep on running, when request is made for the Service it get activated. But in case of self-hosting the service should always be running.

Prevent Recycling:

When a request is made from the browser a worker process is spawned and request is processed. While the browser is disconnected, the worker process is restarted by IIS to ensure that there is no memory leak. But in case of self-hosting you need to write code to ensure such thing.
0
 

Author Comment

by:KaranGupta
ID: 36813687
Hi sonawanekiran

Thanks for the response. Actually I was asking for the method which I have implemented. But I got the answer that I have hosted in  IIS. One quick thing which I want to know from you is -

There was a concept called ASP.NET development server because of which we don't have to create the virtual directory which we used to do earlier, but we can run the websites directly. Can we run the WCF service on ASP.NET development server.

Please let me know if my question is not clear.

Regards
Karan Gupta
0
 
LVL 17

Accepted Solution

by:
sonawanekiran earned 2000 total points
ID: 36813762
Yes you can. But
1) It is not recommended
2) If it is running on different port you need open the port
3) Not sure( If you close visual studio, development server goes off  

So this is temporary provided by VS to test your development work

0
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36813765
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

730 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