title: Signon Fails because the specified Audience is not present in AudienceUris
body: <p>I have a webapp which does signin request/send to my ADFS server. On the return it is directed to another app url; which i configured in my IIS server. I.E. the same url is configured in ADFS server also.</p>
  <p>This error message follows</p>
  <blockquote>
  <p>ID1038: The AudienceRestrictionCondition was not valid because the
  specified Audience is not present in AudienceUris.
  Audience:</p>
  </blockquote>
  <p>Here is the code. Why does it fail as such?</p>
  <pre><code>issuerLocation = &quot;https://test12.login.mytest.edu/adfs/ls/&quot;;
  realm = &quot;https://domain/SSO_Test/&quot;;           
  this.Request.Url.AbsoluteUri.Remove(this.Request.Url.AbsoluteUri.IndexOf(this.Request.Url.Query, StringComparison.OrdinalIgnoreCase));
  var contextId = Guid.NewGuid().ToString();
  this.CreateContextCookie(contextId, this.Request.Url.AbsoluteUri);
  
  var message = new SignInRequestMessage(new Uri(issuerLocation), realm)
  {
      CurrentTime = DateTime.UtcNow.ToString(&quot;s&quot;, CultureInfo.InvariantCulture) + &quot;Z&quot;, 
  };
  
  this.Response.Redirect(message.RequestUrl, false);
  </code></pre>