Customer Portal Authentication

Nov 8, 2012 at 6:59 PM

we've installed the customer portal but when we open the site, we get an error: User Authentication Failed.  We are using ADFS Claims Based authentication for internal and external users.

Here's the web.config strings followed by the error message.

add name="Xrm" connectionString="Url=https://crm.xxxxxx.com/OrgName; Domain=xxxxxx; UserName=xxxxx; Password=xxxxx;"

add name="Live" connectionString="Application Id=99999999999; Secret=xxxxxxxxxxx"

[InvalidOperationException: The user authentication failed!]
   Microsoft.Xrm.Client.Services.OrganizationService.Assert(Boolean condition, String message) +65
   Microsoft.Xrm.Client.Services.OrganizationService.ToOrganizationServiceProxy(CrmConnection connection) +518
   Microsoft.Xrm.Client.Services.OrganizationService.ToOrganizationService(CrmConnection connection) +44
   Microsoft.Xrm.Client.Services.<>c__DisplayClass2.<.ctor>b__0() +42
   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) +171
   Microsoft.Xrm.Client.Services.OrganizationService.Execute(OrganizationRequest request) +130
   Microsoft.Xrm.Client.Services.CachedOrganizationService.InnerExecute(OrganizationRequest request) +177
   Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest query, Func`2 execute, Func`2 selector) +45
   Microsoft.Xrm.Client.Services.<>c__DisplayClass4`3.<LookupAndInsert>b__2(ObjectCache cache) +198
   Microsoft.Xrm.Client.Caching.<>c__DisplayClass6`1.<Get>b__5(String key) +50
   Microsoft.Xrm.Client.Threading.<>c__DisplayClass5`1.<Get>b__3() +82
   Microsoft.Xrm.Client.Threading.<>c__DisplayClass1.<Lock>b__0(Mutex _) +39
   Microsoft.Xrm.Client.Threading.MutexExtensions.Lock(String key, Int32 millisecondsTimeout, Action`1 action) +252
   Microsoft.Xrm.Client.Threading.MutexLockProvider.Lock(String key, Int32 millisecondsTimeout, Action action) +117
   Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Int32 millisecondsTimeout, Func`2 loadFromCache, Func`2 loadFromService) +355
   Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +128
   Microsoft.Xrm.Client.Threading.LockManager.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +115
   Microsoft.Xrm.Client.Caching.ObjectCacheProvider.Get(ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName) +337
   Microsoft.Xrm.Client.Caching.ObjectCacheManager.Get(ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName) +121
   Microsoft.Xrm.Client.Services.OrganizationServiceCache.LookupAndInsert(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +439
   Microsoft.Xrm.Client.Services.OrganizationServiceCache.Get(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +107
   Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +207
   Microsoft.Xrm.Client.Services.OrganizationServiceCache.Execute(OrganizationRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +89
   Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`5 execute, Func`2 selector, String selectorCacheKey) +131
   Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`2 selector, String selectorCacheKey) +255
   Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +178
   Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +42
   Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) +180
   Microsoft.Xrm.Sdk.Linq.QueryProvider.RetrieveEntityCollection(OrganizationRequest request, NavigationSource source) +420
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) +694
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) +93
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(Expression expression) +178
   Microsoft.Xrm.Sdk.Linq.QueryProvider.GetEnumerator(Expression expression) +80
   Microsoft.Xrm.Sdk.Linq.Query`1.GetEnumerator() +159
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +182
   Microsoft.Xrm.Portal.Cms.WebsiteSelectors.NameWebsiteSelector.GetWebsite(OrganizationServiceContext context, RequestContext request) +132
   Microsoft.Xrm.Portal.PortalContext.GetWebsite(OrganizationServiceContext context, RequestContext request, IWebsiteSelector websiteSelector) +40
   Microsoft.Xrm.Portal.PortalContext.<.ctor>b__0() +62
   System.Lazy`1.CreateValue() +361
   System.Lazy`1.LazyInitValue() +104
   System.Lazy`1.get_Value() +89
   Microsoft.Xrm.Portal.PortalContext.get_Website() +35
   Microsoft.Xrm.Portal.Web.CrmSiteMapProvider.FindSiteMapNode(String rawUrl) +436
   Microsoft.Xrm.Portal.PortalContext.GetNode(RequestContext request) +235
   Microsoft.Xrm.Portal.PortalContext.<.ctor>b__2() +43
   System.Lazy`1.CreateValue() +361
   System.Lazy`1.LazyInitValue() +104
   System.Lazy`1.get_Value() +89
   Microsoft.Xrm.Portal.PortalContext.<.ctor>b__3() +47
   System.Lazy`1.CreateValue() +361
   System.Lazy`1.LazyInitValue() +104
   System.Lazy`1.get_Value() +89
   Microsoft.Xrm.Portal.PortalContext.get_Entity() +35
   Microsoft.Xrm.Portal.Web.Routing.PortalRouteHandler.GetHttpHandler(RequestContext requestContext) +154
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +9025096
   System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +86
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75