Help Needed

Help Needed

  • NA
  • 13
  • 22.8k

can not add service reference

Jun 6 2016 9:28 AM

Hi

I created wcf service. and it is working fine. When I am trying to add service reference from client webpage while the service is running  it says following error. I opened visual studio as run as administrator.what to do?

 

There was an error downloading 'http://localhost:8080/_vti_bin/ListData.svc/$metadata'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8080
Metadata contains a reference that cannot be resolved: 'http://localhost:8080/'.
There was no endpoint listening at http://localhost:8080/ that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8080
If the service is defined in the current solution, try building the solution and adding the service reference again.

 

thank you


Answers (1)