Quantcast
Channel: Claims based access platform (CBA), code-named Geneva forum
Viewing all articles
Browse latest Browse all 2535

ADFS 3.0 - System.ArgumentException: An item with the same key has already been added.

$
0
0

Hi

I'm trying to to get the following environment going as a test Lab

  • A standalone ADFS server 3.0 Windows 2012 R2
  • A standalone SharePoint 2013 server setup to use ADFS
  • A sample asp.net app claims aware setup to use the above ADFS.

When I try to access either SharePoint or my sample app, I get redirected to the ADFS login (which is great) but instead of asking for login details it states An error occurred !

Please help!!! I've been stuck for days and need to deliver!

Looking at the ADFS server's event logs I see the following error correlating with every time I try to login:

Encountered error during federation passive request.

Additional Data

Protocol Name:

wsfed

Relying Party:

http://myapps/MVC5ADFS

Exception details:

System.ArgumentException: An item with the same key has already been added.

   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

   at Microsoft.IdentityServer.Web.HomeRealmModule.FindApplicableRealms(ProtocolContext context, Boolean needsIDPInstance)

   at Microsoft.IdentityServer.Web.HomeRealmModule.DiscoverHomeRealm(PassiveProtocolHandler pHandler, ProtocolContext context)

   at Microsoft.IdentityServer.Web.PassiveProtocolListener.GetAuthenticationMethods(PassiveProtocolHandler protocolHandler, ProtocolContext protocolContext)

   at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)



Viewing all articles
Browse latest Browse all 2535

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>