-
Aug 11th, 2011, 05:19 AM
#1
Thread Starter
Frenzied Member
IIS7 and Https hosting a WCF service
I have created a WCF service and am hosting it within a SSL website
i.e.
https://Website/webservices/webservice.svc
However I get the error
Exception type: System.InvalidOperationException Exception message: Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding. Registered base address schemes are [https].
I have followed various tutorials and have set my config to look like below I have also set the IIS advanced setting enabled protocols to allow http,net,tcp
I still get the same error, is there any other settings I should look at?
Code:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="NewBinding0">
<security mode="Transport"/>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="metadataBehavior" name="CourseOutlinesService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
name="Soap1.1" bindingNamespace="http://dataservices.qa.com/"
contract="Corp.Web.GSP.CourseOutlinesService.Contracts.ICourseOutlinesService" />
<endpoint address="/SOAP12" binding="wsHttpBinding" bindingConfiguration=""
name="Soap1.2" bindingNamespace="http://dataservices.qa.com/"
contract="Corp.Web.GSP.CourseOutlinesService.Contracts.ICourseOutlinesService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="metadataBehavior">
<serviceMetadata httpsGetEnabled="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|