locked
CRM 2011 customer portal ACS 2.0 login issue - gmail, yahoo RRS feed

  • Question

  • Hi, I set up the ACS auth so portal users can authenticate with gmail, yahoo etc., It was working fine uptil last month. It is hosted in the Azure.   Now when I type the portal URL company.cloudapp.net 

    We're sorry, but something went wrong.

    We've been notified about this issue and we'll take a look at it shortly.

    Certificates and Keys (Azure ACS) are valid for localhost as well as company.cloudapp.net

    Identity providers - are linked to relying parties (localhost, company) 

    replying party app - Realm, Return URL are also set.  SAML2, no token encryption, token signing cert is valid 

    I am not sure why we are getting error.  Interestingly when I try to use chrome, it used to give this error early, but IE worked just fine. Any thoughts would be appreciated. 

    thank you

    Friday, July 26, 2013 6:12 PM

All replies

  • Authentication Failure 
      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.ServiceModel.FaultException: Authentication Failure
    
    Source Error: 
    
    
    
    Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    Line 4:  <html xmlns="http://www.w3.org/1999/xhtml">
    Line 5:  	<crm:CrmEntityDataSource ID="CurrentEntity" DataItem="<%$ CrmSiteMap: Current %>" runat="server" />
    Line 6:  	<head runat="server">
    Line 7:  		<title>
      
    
     Source File:  f:\Customer Portal\CustomerPortal\CustomerPortal\Web\MasterPages\Default.master    Line:  5 
    
    Stack Trace: 
    
    
    
    [FaultException: Authentication Failure]
    
    [MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.]
       System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +9442991
       System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +345
       Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message message) +0
       Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr) +43
       Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateLiveIdInternal(ClientCredentials clientCredentials, SecurityTokenResponse deviceToken, String keyType) +647
       Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceTokenResponse, String keyType) +146
       Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceTokenResponse) +46
       Microsoft.Xrm.Sdk.Client.OrganizationServiceConfiguration.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceSecurityTokenResponse) +17
       Microsoft.Xrm.Client.Services.OrganizationService.CreateUserTokenResponse(CrmConnection connection, IServiceConfiguration`1 config) +367
       Microsoft.Xrm.Client.Services.OrganizationService.GetUserTokenResponse(CrmConnection connection, IServiceConfiguration`1 config) +259
       Microsoft.Xrm.Client.Services.OrganizationService.ToOrganizationServiceProxy(CrmConnection connection) +150
       Microsoft.Xrm.Client.Services.OrganizationService.ToOrganizationService(CrmConnection connection) +10
       Microsoft.Xrm.Client.Services.<>c__DisplayClass2.<.ctor>b__0() +18
       System.Lazy`1.CreateValue() +361
       System.Lazy`1.LazyInitValue() +104
       System.Lazy`1.get_Value() +89
       Microsoft.Xrm.Client.Services.InnerOrganizationService.UsingService(Func`2 action) +236
       Microsoft.Xrm.Client.Services.OrganizationService.Execute(OrganizationRequest request) +77
       Microsoft.Xrm.Client.Services.CachedOrganizationService.InnerExecute(OrganizationRequest request) +77
       Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest query, Func`2 execute, Func`2 selector) +12
       Microsoft.Xrm.Client.Services.<>c__DisplayClass4`3.<LookupAndInsert>b__2(ObjectCache cache) +118
       Microsoft.Xrm.Client.Caching.<>c__DisplayClass6`1.<Get>b__5(String key) +20
       Microsoft.Xrm.Client.Threading.<>c__DisplayClass5`1.<Get>b__3() +39
       Microsoft.Xrm.Client.Threading.<>c__DisplayClass1.<Lock>b__0(Mutex _) +12
       Microsoft.Xrm.Client.Threading.MutexExtensions.Lock(String key, Int32 millisecondsTimeout, Action`1 action) +100
       Microsoft.Xrm.Client.Threading.MutexLockProvider.Lock(String key, Int32 millisecondsTimeout, Action action) +69
       Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Int32 millisecondsTimeout, Func`2 loadFromCache, Func`2 loadFromService) +199
       Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +77
       Microsoft.Xrm.Client.Threading.LockManager.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +80
       Microsoft.Xrm.Client.Caching.ObjectCacheProvider.Get(ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName) +247
       Microsoft.Xrm.Client.Caching.ObjectCacheManager.Get(ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName) +86
       Microsoft.Xrm.Client.Services.OrganizationServiceCache.LookupAndInsert(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +322
       Microsoft.Xrm.Client.Services.OrganizationServiceCache.Get(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +68
       Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +136
       Microsoft.Xrm.Client.Services.OrganizationServiceCache.Execute(OrganizationRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +58
       Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`5 execute, Func`2 selector, String selectorCacheKey) +104
       Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`2 selector, String selectorCacheKey) +185
       Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +128
       Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +10
       Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) +89
       Microsoft.Xrm.Sdk.Linq.QueryProvider.RetrieveEntityCollection(OrganizationRequest request, NavigationSource source) +283
       Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) +348
       Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) +67
       Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(Expression expression) +129
       Microsoft.Xrm.Sdk.Linq.QueryProvider.GetEnumerator(Expression expression) +59
       Microsoft.Xrm.Sdk.Linq.Query`1.GetEnumerator() +72
       System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +182
       Microsoft.Xrm.Portal.Cms.WebsiteSelectors.NameWebsiteSelector.GetWebsite(OrganizationServiceContext context, RequestContext request) +33
       Microsoft.Xrm.Portal.PortalContext.<.ctor>b__0() +19
       System.Lazy`1.CreateValue() +361
       System.Lazy`1.LazyInitValue() +104
       System.Lazy`1.get_Value() +89
       Microsoft.Xrm.Portal.PortalContext.get_Website() +11
       Microsoft.Xrm.Portal.Web.CrmSiteMapProvider.FindSiteMapNode(String rawUrl) +201
       System.Web.SiteMapProvider.FindSiteMapNode(HttpContext context) +56
       System.Web.SiteMapProvider.get_CurrentNode() +56
       Microsoft.Xrm.Portal.Web.Compilation.Provider.GetSiteMapNode(String siteMarker, String portalName) +63
       Microsoft.Xrm.Portal.Web.Compilation.Provider.Microsoft.Xrm.Portal.Web.Compilation.IExpressionBuilderProvider.Evaluate(NameValueCollection arguments, Type controlType, String propertyName, String expressionPrefix) +123
       Microsoft.Xrm.Portal.Web.Compilation.CrmExpressionBuilder`1.GetEvalData(String expression, Type controlType, String propertyName, String expressionPrefix) +51
       ASP.masterpages_default_master.__BuildControlCurrentEntity() in f:\Customer Portal\CustomerPortal\CustomerPortal\Web\MasterPages\Default.master:5
       ASP.masterpages_default_master.__BuildControlTree(masterpages_default_master __ctrl) in f:\Customer Portal\CustomerPortal\CustomerPortal\Web\MasterPages\Default.master:1
       ASP.masterpages_default_master.FrameworkInitialize() in c:\Users\UserA\AppData\Local\Temp\Temporary ASP.NET Files\root\cee985a3\42bc831d\App_Web_5nedwxl0.0.cs:0
       System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
       System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +9037298
       System.Web.UI.Page.get_Master() +54
       System.Web.UI.Page.ApplyMasterPage() +15
       System.Web.UI.Page.PerformPreInit() +45
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328
    
     
    

    When I run from VS, I get the above error description. Any help is appreciated. 

    Friday, July 26, 2013 7:08 PM