connect to webservice in Visual Studio

P

peter

Hi, I am developing a small webservice in Visual Studio (programmed in c#).
Sometimes when I try to run my small tester application in Visual Studio
(which tries to connect to my webservice) I get this error:

There was an error downloading 'http://localhost:1639/TestService.asmx.
Unable to connect to the remote server. No connection could be made because
the target machine actively refused it.

How can I start my webservice in Visual Studio so it accepts connections
from my test application?

Thanks, Peter
 
R

RYoung

You may need to make sure the port that the webservice is using is static. I
believe it is dynamic by default when the "cassini" web server is being
used. So, that with a dynamic port, the next time you test the service, it
may have a port number other than 1639.

In Solution Explorer, click your web service project, and check the
Properties window, there should be some settings in there to specify a
static port number.

Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top