WCF, aspx, c#

Webboy2008 used Ask the Experts™
Just finish up a WCF services. It is simple HelloWorld Project.
Everything is working fine. Using aspx to call is fine locally.

However, when I create new virtual directory called, HostServiceTest,
and try to call the WCF Services again. I got the error message:

No connection could be made because the target machine actively refused it

Please help. Thanks
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Architect
Top Expert 2005
Hi Webboy2008,

          It is because your client (aspx) is configure with local development server. To resolve this issue you need to do following.

1.  Configure service reference with localhost rather than localhost:xxxx (xxxx is port number).

2.  After that update service reference. It will update web.config file with localhost rather than localhost:xxxx in endpoints.



I don't understand what i need to change.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial