web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

ADX Portal 7.0 - Sequence contains more than one element

(0) ShareShare
ReportReport
Posted on by

Hi

having an issue all of a sudden with my portals. I have no ADFS, IFD, Claims, Azure integrated yet so unsure why this happened after a reset.

Any help greatly appreciated.

Sequence contains more than one element 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.InvalidOperationException: Sequence contains more than one element

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:

[InvalidOperationException: Sequence contains more than one element]
   Microsoft.Xrm.Sdk.Linq.QueryProvider.ThrowException(Exception exception) +13
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) +1119
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) +135
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(Expression expression) +275
   Microsoft.Xrm.Sdk.Linq.QueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) +72
   System.Linq.Queryable.SingleOrDefault(IQueryable`1 source, Expression`1 predicate) +446
   Adxstudio.Xrm.Web.Security.CrmRoleProvider.GetRolesForUser(String username) +183
   Adxstudio.Xrm.Web.Security.CrmContactAccountRoleProvider.GetRolesForUser(String username) +13475
   System.Web.Security.RolePrincipal.GetRoles() +273
   System.Web.Security.Roles.GetRolesForUser(String username) +506
   Adxstudio.Xrm.Cms.Security.ContentMapWebPageAccessControlSecurityProvider.TryAssert(WebPageNode page, CrmEntityRight right) +902
   Adxstudio.Xrm.Cms.Security.<>c__DisplayClass2_0.<TryAssert>b__0(ContentMap map) +637
   Adxstudio.Xrm.Cms.<>c__DisplayClass21_0`1.<Using>b__0() +75
   Adxstudio.Xrm.Cms.<>c__DisplayClass10_0`1.<Using>b__0() +80
   Adxstudio.Xrm.Cms.ContentMap.Using(ContentMapLockType lockType, Action action) +848
   Adxstudio.Xrm.Cms.ContentMap.Using(ContentMapLockType lockType, Func`1 action) +182
   Adxstudio.Xrm.Cms.ContentMapProvider.Using(ContentMapLockType lockType, Func`2 action) +232
   Adxstudio.Xrm.Cms.ContentMapProvider.Using(Func`2 action) +109
   Adxstudio.Xrm.Cms.Security.ContentMapWebPageAccessControlSecurityProvider.TryAssert(OrganizationServiceContext context, Entity webPage, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies) +360
   Adxstudio.Xrm.Cms.Security.UncachedProvider.TestWebPage(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies) +128
   Adxstudio.Xrm.Cms.Security.UncachedProvider.InnerTryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies) +607
   Adxstudio.Xrm.Cms.Security.UncachedProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies) +916
   Adxstudio.Xrm.Security.<>c__DisplayClass1_0.<TryAssert>b__0(ObjectCache cache) +133
   Microsoft.Xrm.Client.Caching.<>c__DisplayClass6`1.<Get>b__5(String key) +24
   Microsoft.Xrm.Client.Threading.<>c__DisplayClass5`1.<Get>b__3() +62
   Adxstudio.Xrm.Threading.MonitorLockProvider.Lock(String key, Int32 millisecondsTimeout, Action action) +132
   Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Int32 millisecondsTimeout, Func`2 loadFromCache, Func`2 loadFromService) +182
   Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +86
   Microsoft.Xrm.Client.Caching.ObjectCacheManager.Get(ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName) +105
   Microsoft.Xrm.Client.Caching.ObjectCacheManager.Get(String cacheKey, Func`2 load, Action`2 insert, String regionName) +77
   Adxstudio.Xrm.Security.ApplicationCachingCrmEntitySecurityProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies) +562
   Adxstudio.Xrm.Security.RequestCachingCrmEntitySecurityProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies) +518
   Adxstudio.Xrm.Security.CacheSupportingCrmEntitySecurityProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right) +135
   Adxstudio.Xrm.Cms.Security.CmsCrmEntitySecurityProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right) +90
   Microsoft.Xrm.Portal.Web.CrmSiteMapProviderBase.ReturnNodeIfAccessible(CrmSiteMapNode node, Func`1 getFallbackNode) +60
   Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.GetAccessibleNodeOrAccessDeniedNode(ContentMap map, WebPageNode page, IContentMapEntityUrlProvider provider) +168
   Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.FindSiteMapNode(String rawUrl, ContentMap map) +902
   Adxstudio.Xrm.Web.<>c__DisplayClass0_0.<FindSiteMapNode>b__1(ContentMap map) +69
   Adxstudio.Xrm.Cms.<>c__DisplayClass21_0`1.<Using>b__0() +79
   Adxstudio.Xrm.Cms.<>c__DisplayClass10_0`1.<Using>b__0() +91
   Adxstudio.Xrm.Cms.ContentMap.Using(ContentMapLockType lockType, Action action) +848
   Adxstudio.Xrm.Cms.ContentMap.Using(ContentMapLockType lockType, Func`1 action) +235
   Adxstudio.Xrm.Cms.ContentMapProvider.Using(ContentMapLockType lockType, Func`2 action) +384
   Adxstudio.Xrm.Cms.ContentMapProvider.Using(Func`2 action) +159
   Adxstudio.Xrm.Web.<>c__DisplayClass0_0.<FindSiteMapNode>b__0() +239
   Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.CachePerRequest(String method, String key, Func`1 get) +689
   Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.FindSiteMapNode(String rawUrl) +229
   Adxstudio.Xrm.AspNet.Cms.PortalContext`3.GetNode(RequestContext request) +378
   Adxstudio.Xrm.AspNet.Cms.PortalContext`3.<.ctor>b__30_0() +136
   System.Lazy`1.CreateValue() +741
   System.Lazy`1.LazyInitValue() +430
   Adxstudio.Xrm.AspNet.Cms.PortalContext`3.<.ctor>b__30_1() +87
   System.Lazy`1.CreateValue() +741
   System.Lazy`1.LazyInitValue() +430
   Adxstudio.Xrm.AspNet.Cms.PortalContext`3.get_Entity() +60
   Adxstudio.Xrm.Web.Routing.PortalRouteHandler.OnPortalLoaded(RequestContext requestContext, IPortalContext portal) +236
   Adxstudio.Xrm.Web.Routing.PortalRouteHandler.GetHttpHandler(RequestContext requestContext) +157
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +216
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +229
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +98

Thank you in advance

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at

    Hi Jackie,

    Did something change in Portal user's web roles?  Did you add or remove Web Roles?

    Also try going to the web site using Browser's "InPrivate" or "Incognito" mode without trying to login and see if the site still works.

    Also try login in using a different user or a brand new user and see if you still have the issue.  I think the issue is something to do with the Portal user's configuration.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Nadeeja, it works perfectly in with InPrivate so I will find out what has happened to the administrator login during webcopy.

    thanks

    Jackie

  • Community Member Profile Picture
    on at

    Thank you, work fine

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans