Going from dev to live, where the dev system referenced dev version of web services, but the live system has to reference live versions which are HTTPS i recieved this error;
The provided URI scheme ‘http’ is invalid; expected ‘https
This is resolved simply by updating the web.config file and setting the security tag’s mode attribute from None to Transport;
<bindings> <wsHttpBinding> <binding name="WSHttpBinding_IWSHttpService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Transport"> <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="None" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" /> </security> </binding> </wsHttpBinding> </bindings>
The provided URI scheme ‘http’ is invalid; expected ‘https.
Related posts:











#1 by KevinSchubert at July 23rd, 2009
Sometimes it’s really that simple, isn’t it? I feel a little stupid for not thinking of this myself/earlier, though.
#2 by shawson at July 24th, 2009
haha don’t feel bad- i spent an hour or so on this!
#3 by Naziya Khan at September 4th, 2009
I am getting the same error.
But my security mode is already set to TransportWithMessageCredentials
Service is running on https and the client’s app.config has https too
Whats wrong….. grrrrrr
#4 by shawson at September 8th, 2009
hmm- are you sure it’s set correctly- i set the security tag’s mode property simply to “Transport”?
#5 by essay writers at October 9th, 2009
Still the same problem
#6 by Michael at January 18th, 2010
It really was that simple! After a few hours…Thanks