locked
System.UriFormatException: Invalid URI: The format of the URI could not be determined. RRS feed

  • Question

  • Hello,

    I'm getting the following error with an SP initiated flow using SAML SSO. This is <g class="gr_ gr_353 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="353" id="353">ADFS</g> version 3:

    Encountered error during <g class="gr_ gr_143 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="143" id="143">federation</g> passive request. 

    Additional Data 

    Protocol Name: 
    Saml 

    Relying Party: 
    Test 

    Exception details: 
    System.UriFormatException: Invalid URI: The format of the URI could not be determined.
       at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
       at Microsoft.IdentityServer.Web.Protocols.Saml.SamlSignInContext.ValidateCore()
       at Microsoft.IdentityServer.Web.Protocols.ProtocolContext.Validate()
       at Microsoft.IdentityServer.Web.Protocols.Saml.SamlProtocolHandler.GetRequiredPipelineBehaviors(ProtocolContext pContext)
       at Microsoft.IdentityServer.Web.PassiveProtocolListener.EvaluateHomeRealm(PassiveProtocolHandler protocolHandler, ProtocolContext protocolContext)
       at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)

    What is the best way to trace this issue? My settings work fine with <g class="gr_ gr_263 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="263" id="263">ADFS</g> 2.0 and Azure AD.

    Thanks!

    Friday, September 1, 2017 2:37 AM

All replies

  • You can enabled the Debug Log (AD FS/Tracing in the event viewer). Do you have more info on the URI? (the content for example) or a fiddler trace?

    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

    Tuesday, September 12, 2017 8:32 PM