Server Error in '/' Application.

A configured certificate could not be found in the certificate store. The certificate was searched for in LocalMachine/My, FindByThumbprint='1b be 05 01 ad 8a e5 a0 64 66 54 66 eb 2a ba 8e 2e 42 55 ca', validOnly=False.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Configuration.ConfigurationErrorsException: A configured certificate could not be found in the certificate store. The certificate was searched for in LocalMachine/My, FindByThumbprint='1b be 05 01 ad 8a e5 a0 64 66 54 66 eb 2a ba 8e 2e 42 55 ca', validOnly=False.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ConfigurationErrorsException: A configured certificate could not be found in the certificate store. The certificate was searched for in LocalMachine/My, FindByThumbprint='1b be 05 01 ad 8a e5 a0 64 66 54 66 eb 2a ba 8e 2e 42 55 ca', validOnly=False.]
   dk.nita.saml20.config.Certificate.GetCertificate() +322
   dk.nita.saml20.protocol.Saml20SignonHandler..ctor() +46

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +122
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +239
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +85
   System.Activator.CreateInstance(Type type) +12
   System.Web.HttpRuntime.CreatePublicInstanceByWebObjectActivator(Type type) +60
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +9852044
   System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +82
   System.Web.UI.SimpleHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +39
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +386
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0