How do I launch a Client (test) app from VS 2008 when I'm debugging a WCF service?

Hi:

I'm just working on getting my feet wet with WCF.
I've written a simple WCF "HelloWorld" service.
I've also added a console client app to communicate with the service
I've added the /client:"client.exe" to the command line arguments of the debug tab of the project properties for my service.

Everything compiles fine. I'm able run my service and examine it in the WCF Service Host app.
I get the following error when VS 2008 attempts to launch my WCF client:
"Failed to launch client application client.exe'. The client may not be accessible or failed to execute. Do you want to exit?"

I also get the same error when I attempt to run with /client:"WcfTestClient.exe"

I am however able to run the both my custom client and WcfTestClient.exe from the browser (external to VS 2008) and communicate with the WCF service.

I'm running Vista Business and VS 2008.

What am I missing here?

Thanks,
JohnB

LVL 1
jxbmaSoftware ConsultantAsked:
Who is Participating?
 
Miguel OzConnect With a Mentor Software EngineerCommented:
Check:
http://stackoverflow.com/questions/927514/f5-on-wcf-project-in-c-vs2008-produces-wcfsvchost-exe-error

If still have the issue, please post:
- the complete error message.
- any event log message related to it.
- PC details OS(32 or 64 bits). Does VS 2008 has SP1? Any antivirus/spyware? (sometimes you  need to exclude your well know files to avoid interference)
- Restart your PC and try again.
0
 
mikebirtCommented:
Hi,

i've done a bit of work with WCF and i've never seen the error you've encoutnered. i'm also never attempted to launch a client app in that way... i wonder could this be a coincedence? have you tried launching the service and client seperately? launch the service, then right click your client project, go down to the debug option, then start new instance. Maybe this would work?

... thought it was worth a mention

HTH

Mike
0
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.

All Courses

From novice to tech pro — start learning today.