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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Miguel OzSoftware 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.