Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi my friends
I 've made in the local WCF works but when it Publish and upload it on a host (for example: http://service.mysite.com/admin/Service.svc), then in website solution and Add service reference click and enter URL and click Go button, the service does not add to my solution and show this error:
an error occurred while attempting to find services at http

There was an error downloading 'http://service.mysite.com/admin/Service.svc/_vti_bin/ListData.svc/$metadata'.
The request failed with the error message:
...

please help me

my web.config:
http://s3.picofile.com/file/8196943226/conf2.jpg[^]

Service.svc file:
http://s3.picofile.com/file/8196943384/conf3_svc.jpg[^]

Error message:
http://s6.picofile.com/file/8196943476/confe.jpg[^]

Help me
Posted
Comments
[no name] 30-Jun-15 18:00pm    
http://www.codeproject.com/Questions/1005418/WCF-will-not-be-added-on-the-Internet-to-my-projec
Farid Karami (FK8) 1-Jul-15 1:42am    
I add endpoint to web.config but that not working

1 solution

In your web.config you use basicHttpsBindig and scheme https. AFAIK for this purpose your client and server should share SSL certificate, othervise it will not be trusted connection. Also you can try to read these two links:

http://stackoverflow.com/questions/14874529/what-is-the-difference-between-basichttpsbinding-and-wshttpbinding-with-transpor[^]

http://stackoverflow.com/questions/21513205/changing-from-basichttpbinding-to-basichttpsbinding-not-working[^]
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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