Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have made a service and i can add its service reference within the same solution but when i try to add the reference in the seprate project not within the same solution...it shows the error
given below



CSS
There was an error downloading 'http://user-pc:8732/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it [2001:0:9d38:6abd:3cde:17a4:3f57:febc]:8732
Metadata contains a reference that cannot be resolved: 'http://user-pc:8732/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'.
There was no endpoint listening at http://user-pc:8732/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex that could accept the message. This is often caused by an incorrect address
Posted

1 solution

Before you add any service reference you have to make sure that service is running if you have self hosted that service. So I'll suggest run the service and then add service reference. Let me know if you still face issues.

Thanks,
Shashi
 
Share this answer
 
Comments
Adi5555 22-Sep-14 3:46am    
basically i want to run the service by a .exe file.not from visual studio .because the wcf service program does not have the exe file in its debug folder so thats why i want to add the reference in the other program and start the service programatically ..not by pressing the start button of visual studio for running program
SK Yadav 26-Oct-14 2:51am    
So while creating that .exe you can add reference. and when you will invoke exe it will call the service (which is referenced in exe)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900