Solved

query regarding the wcf hosting option

Posted on 2011-09-29
4
310 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 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