Search code examples
asp.net-mvcwcfhttps

HTTPS website accessing HTTP WCF service


I have deployed an MVC web application on IIS, and it is configured to run over HTTPS. Further, the website is consuming a WCF service which is deployed on other server (in same network). The WCF service is running over HTTP. Everything seems working fine, but while accessing the website it is always giving following message on IE 8.

See the image

How can we make the site accessible without the below message getting displayed? Also, the solution should not entail any changes at client-level. I need a solution which can be done at site-level.


Solution

  • it seems that you have enabled https and want to consume service vai http. so please change your serviceMetadata

    <serviceMetadata httpsGetEnabled="true"/>
    

    to

     <serviceMetadata httpGetEnabled="true"/>