Solved

query regarding the wcf hosting option

Posted on 2011-09-29
4
311 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
  • 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 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

808 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