• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 454
  • Last Modified:

WCF Service Application

In visual studio 2008, I am practicing hosting a WCF Service in different environments such as a Console Application, and WCF Service Application (Using Visual Studio Development Server) .

I do the following: Set my Client program and a Console Application( which host the WCF Service) as Start up Projects for my Solution. The action I place on the WCF Service Application (Using Visual Studio Development Server)  is set to None.

 However, the WCF Service Application (Using Visual Studio Development Server) starts up anyway. I am not using it to host my WCF Service but now I am using my Console application to host the WCF Service. So I am not using it.
So Why does the WCF Service Application (Using Visual Studio Development Server) start up anyway. I had to unload the  WCF Service Application  project to prevent it from running.
  • 2
1 Solution
Bob LearnedCommented:
That is a great question.  I will assume that the solution start up is a single project, and not multiple projects...
metro156Author Commented:
I found the answer which was really stupid of me. In the WCF Project properties window there is a WCF Options tab. When you click on WCF Option, the property contains a check box to select
Start WCF Service Host when debugging another project in the same solution.

So all you have to do is uncheck it to prevent the WCF Service Host from starting.
metro156Author Commented:
Well my comment above is the solution to the issue of a WCF Project always starting for no reason.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now