Hi, I am using CRM 2011 online and deployed both Microsoft XRM partner and customer portals in Azure. I am able to view and edit the case in customer portal but am getting error when I try to open a new case as below. I imported the partner portal
solutions.zip file and ran web-site copy for both partner and customer portals.
I gave full access permissions on case, account, channel, contact etc.,
Server Error in '/' Application.
Sequence contains no elements
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 no elements
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 no elements]
Microsoft.Xrm.Sdk.Linq.QueryProvider.ThrowException(Exception exception) +12
Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) +489
Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) +131
Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(Expression expression) +216
Microsoft.Xrm.Sdk.Linq.QueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) +85
System.Linq.Queryable.First(IQueryable`1 source, Expression`1 predicate) +590
Site.Pages.eService.CreateCase.CreateButton_Click(Object sender, EventArgs e) in C:\Customer Portal\CustomerPortal\Web\Pages\eService\CreateCase.aspx.cs:30
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707
|