locked
Customer Portal hosted on azure error: "No certificate was found for subject Name" RRS feed

  • Question

  •                                

    I get the following error when I try to login to my azure hosted customer portal. Can anyone help with this please?

    Server Error in '/' Application.

    No certificate was found for subject Name CN=https://acciotap.accesscontrol.windows.net/

    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.ApplicationException: No certificate was found for subject Name CN=https://acciotap.accesscontrol.windows.net/

    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: 
    [ApplicationException: No certificate was found for subject Name CN=https://acciotap.accesscontrol.windows.net/]
       RsaEncryptedSessionSecurityTokenHandler.CertificateUtil.GetCertificate(StoreName name, StoreLocation location, String subjectName) +550
       RsaEncryptedSessionSecurityTokenHandler.RsaEncryptedSessionSecurityTokenHandler..cctor() +65
    
    [TypeInitializationException: The type initializer for 'RsaEncryptedSessionSecurityTokenHandler.RsaEncryptedSessionSecurityTokenHandler' threw an exception.]
       RsaEncryptedSessionSecurityTokenHandler.RsaEncryptedSessionSecurityTokenHandler..ctor() +0
    
    [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) +113
       System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
       System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
       System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1136
       System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +128
       System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +18
       Microsoft.IdentityModel.Configuration.CustomTypeElement.Resolve(CustomTypeElement customTypeElement, Object[] arguments) +675
    
    [ConfigurationErrorsException: ID0012: Failed to create an instance of 'RsaEncryptedSessionSecurityTokenHandler.RsaEncryptedSessionSecurityTokenHandler, RsaEncryptedSessionSecurityTokenHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=02d54de23369fe3c' from configuration.]
       Microsoft.IdentityModel.Configuration.CustomTypeElement.Resolve(CustomTypeElement customTypeElement, Object[] arguments) +1301
       Microsoft.IdentityModel.Configuration.ServiceConfiguration.LoadHandlers(ServiceElement serviceElement) +565
       Microsoft.IdentityModel.Configuration.ServiceConfiguration.LoadConfiguration(ServiceElement element) +269
       Microsoft.IdentityModel.Configuration.ServiceConfiguration..ctor() +191
       Microsoft.IdentityModel.Web.FederatedAuthentication.get_ServiceConfiguration() +63
       Microsoft.IdentityModel.Web.HttpModuleBase.Init(HttpApplication context) +14
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +418
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
    
    [HttpException (0x80004005): ID0012: Failed to create an instance of 'RsaEncryptedSessionSecurityTokenHandler.RsaEncryptedSessionSecurityTokenHandler, RsaEncryptedSessionSecurityTokenHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=02d54de23369fe3c' from configuration.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9914340
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.19408
    Thursday, April 17, 2014 6:29 AM