By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,978 Members | 1,093 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,978 IT Pros & Developers. It's quick & easy.

exe calling WS only works with VS running.

P: n/a
I have a strange issue here. I created an exe that calls a Web Service that
I also created. When I run in debug mode the WS is called and does its
thing. When I run in release mode (through Visual Studio) the WS is called
and does its thing. I then created the install for the project, installed it
and ran it. The WS gets called only if Visual Studio is running. Why would
this be? The executable is in release mode and has the config file that
points to the WS (localhost) and if I shut down Visual Studio the program
keeps running but the WS calls are ignored.

Platform - WinXP Pro sp2
Visual Studio 2005 Pro with SP1

Thanks,

David

Jul 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"dburkinshaw" <db*********@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>I have a strange issue here. I created an exe that calls a Web Service that
I also created. When I run in debug mode the WS is called and does its
thing. When I run in release mode (through Visual Studio) the WS is called
and does its thing. I then created the install for the project, installed
it and ran it. The WS gets called only if Visual Studio is running. Why
would this be? The executable is in release mode and has the config file
that points to the WS (localhost) and if I shut down Visual Studio the
program keeps running but the WS calls are ignored.
First of all, I'm suspicious of the WS calls "being ignored". Are you
catching exceptions correctly? Are you sure you're not getting an exception
and not reporting it where you can see it?

I suspect you'll find you have the WS configured to use the VS development
server. I'm not sure that runs without VS.
--
John Saunders [MVP]

Jul 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.