Quantcast
Channel: The HTTP request was forbidden with client authentication scheme 'Anonymous'.
Viewing all articles
Browse latest Browse all 5

The HTTP request was forbidden with client authentication scheme 'Anonymous'.

$
0
0

I have the following web.config for the WCF service which runs on https:// 

<?xml version="1.0"?><configuration><appSettings><add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /></appSettings><system.web><compilation debug="true" targetFramework="4.5" /><httpRuntime targetFramework="4.5" maxRequestLength="10240"/><customErrors mode="Off" /></system.web>  <system.serviceModel>    <bindings>      <basicHttpsBinding><binding name="CustomHttpsSettings" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text"><readerQuotas maxDepth="2000000" maxArrayLength="2147483647" maxStringContentLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /><security mode="Transport"><transport clientCredentialType="None" proxyCredentialType="None" />            </security></binding></basicHttpsBinding></bindings>    <services><service name="JulianSOAP.XmlReceiver" behaviorConfiguration="ServiceWithMetadata"><endpoint name="Default" binding="basicHttpsBinding" bindingConfiguration="CustomHttpsSettings" contract="JulianSOAP.IXmlReceiver" />      </service></services><behaviors><serviceBehaviors><behavior name="ServiceWithMetadata"><serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /><serviceDebug includeExceptionDetailInFaults="true" /></behavior></serviceBehaviors></behaviors><protocolMapping><add binding="basicHttpsBinding" scheme="https" bindingConfiguration="CustomHttpsSettings" /></protocolMapping><serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="false" /></system.serviceModel><system.webServer><security><requestFiltering><requestLimits maxAllowedContentLength="2147483647" /></requestFiltering></security><modules runAllManagedModulesForAllRequests="true"/><directoryBrowse enabled="true"/></system.webServer></configuration>

The service is up and running fine.

The client is running over http on localhost and has the following web configuration.

<?xml version="1.0" encoding="utf-8"?><configuration><system.web><compilation debug="true" targetFramework="4.5" /><httpRuntime targetFramework="4.5" maxRequestLength="10240" /><customErrors mode="On" /><trust level="Full"/></system.web><system.serviceModel>    <bindings><basicHttpBinding>        <binding name="BasicHttpBinding_IXmlReceiver1" 
                 maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"><readerQuotas 
            maxDepth="2147483647" maxArrayLength="2147483647" maxStringContentLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/><security mode="Transport"></security></binding></basicHttpBinding>    </bindings><client>      <endpoint address="https://test.domain.com/XmlReceiver.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IXmlReceiver1"
        contract="LiveTestClientServiceReference.IXmlReceiver" name="BasicHttpBinding_IXmlReceiver1" /></client></system.serviceModel></configuration>

Meaning it works just fine without SSQL and certificates but as soon as i publish it on https i get the above error. 

Thank you so much


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images