i have a wcf project, hosted in server without SSL.
now, I have installed SSL and make the changes in Bindings. Then did a default redirect to HTTPS using THIS Way
after that, from visual studio I tried to add service reference to a windows service but, I'm receiving below error.
There was an error downloading 'https://MyDNS/ReservationService.svc/$metadata'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'https://MyDNS/ReservationService.svc'.
There was no endpoint listening at https://MyDNS/ReservationService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (404) Not Found.
If the service is defined in the current solution, try building the solution and adding the service reference again.
If I removed HTTP from server then I received error as "
Service 'ReservationService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
"
I have to use HTTPS but, don't know where the error is, please help me to resolve it.
thanks
jey