title: Configuring Sending Encrypted Assertions to Relying Party Doesn't Work in Azure B2C
body: <p>I have configured my app according to: <a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/connect-with-saml-service-providers" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/active-directory-b2c/connect-with-saml-service-providers</a></p>
  <p>I see the assertion being made in the app insights logs but I always receive an exception. I was able to use the SP test application to test the config but once I configured encrypted assertions the B2C setup no longer functions.</p>
  <p>Has anyone been able to get encrypted assertions working? The meta my SP app looks like this: <a href="https://clients.home.foe.hn/meta/captivateprimeeu_sp.xml" rel="nofollow noreferrer">https://clients.home.foe.hn/meta/captivateprimeeu_sp.xml</a></p>
  <p>It has the right KeyDescriptor node as listed in the docs along with the public key my SP provided.</p>
  <p>I receive the following errors in app insights:</p>
  <p>the logs in app insights are as follows:</p>
  <pre class="lang-js prettyprint-override"><code>{&quot;Kind&quot;:&quot;Action&quot;,&quot;Content&quot;:&quot;Web.TPEngine.StateMachineHandlers.SendRelyingPartyResponseHandler&quot;}
  {&quot;Kind&quot;:&quot;FatalException&quot;,&quot;Content&quot;:{&quot;Time&quot;:&quot;9:57 PM&quot;,&quot;Exception&quot;:{&quot;Kind&quot;:&quot;Handled&quot;,&quot;HResult&quot;:&quot;80131509&quot;,&quot;Message&quot;:&quot;Sequence contains no elements&quot;,&quot;Data&quot;:{}​}}​}
  </code></pre>