https with WCF error: “Could not find base address that matches scheme https”

前端 未结 7 1506
南旧
南旧 2020-12-23 19:42

I go to https://mywebsite/MyApp/Myservice.svc and get the following error:

(The link works if I use http:// )

\"The service \'/MyApp/MyService.svc\' cann

7条回答
  •  有刺的猬
    2020-12-23 20:43

    Make sure SSL is enabled for your server!

    I got this error when trying to use a HTTPS configuration file on my local box which doesn't have that certificate. I was trying to do local testing - by converting some of the bindings from HTTPS to HTTP. I thought it would be easier to do this than try to install a self signed certificate for local testing.

    Turned out I was getting this error becasue I didn't have SSL enabled on my local IIS even though I wasn't intending on actually using it.

    There was something in the configuration for HTTPS. Creating a self signed cert in IIS7 allowed HTTP to then work :-)

提交回复
热议问题