system.servicemodel.communicationexception issue intermittently RRS feed

  • Question

  • I have a https service which is authenticated with ADFS. I added the service as a service reference to my WP8 client. When trying to access the service, i am intermittently getting system.servicemodel.communicationexception (Remote server returned an error: NotFound)

    <binding name="XXX" receiveTimeout="00:59:59" sendTimeout="00:59:59" openTimeout="00:59:59">
              <security authenticationMode="IssuedTokenOverTransport"  messageSecurityVersion="WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10">
                <issuedTokenParameters keyType="BearerKey"></issuedTokenParameters>
              <binaryMessageEncoding />
              <httpsTransport  maxReceivedMessageSize="2000000" maxBufferSize="2000000"/>

    Friday, September 6, 2013 11:54 AM


  • There could be some unhandled exception in your WCF Service. By default, WCF services do not return information from unhandled exceptions to protect sensitive data. You have to configure it in config file to allow return unhandled exception details.

    You have to set "IncludeExceptionDetailInFaults" to true in ServiceDebug.

    <serviceDebug includeExceptionDetailInFaults="true"/>

    You can find more information from following link

    Gaurav Khanna | Microsoft VB.NET MVP | Microsoft Community Contributor

    Friday, September 6, 2013 1:04 PM