Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

query regarding the wcf hosting option

Posted on 2011-09-29
4
Medium Priority
?
333 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 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

772 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