1
Vote

Event Registration gives an error after clicking submit

description

In CRM 4.0, the Event Management Accelerator was installed. CRM was upgraded to 2011 with the accelerator installed. The Customer Portal Accelerator for CRM 2011 was then installed and I get an error when submitting an event registration.
 

Server Error in '/' Application.

 
The given key was not present in the dictionary.
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.FaultException1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The given key was not present in the dictionary.
 
Source Error:
 
 
Line 158:
Line 159: XrmContext.AddObject(registration);
Line 160: XrmContext.SaveChanges();
Line 161:
Line 162: //Show Confirmation

 
Source File: C:\Users\Administrator\Downloads\CRM 2011 Customer Portal\CustomerPortal\CustomerPortal\Web\Pages\Events\Registration.aspx.cs Line: 160
 
Stack Trace:
 
 
[FaultException
1: The given key was not present in the dictionary.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +4727747
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +1725
Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request) +0
Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request) +504
Microsoft.Xrm.Client.Services.InnerOrganizationService.UsingService(Func2 action) +170
Microsoft.Xrm.Client.Services.CachedOrganizationService.InnerExecute(OrganizationRequest request) +67
Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest request, Func
2 execute, Func2 selector, String selectorCacheKey) +188
Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func
2 selector, String selectorCacheKey) +225
Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +177
Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) +254
Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChange(OrganizationRequest request, IList`1 results) +43
 
[SaveChangesException: An error occured while processing this request.]
Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges(SaveChangesOptions options) +1707
Site.Pages.Events.Registration.Register_Click(Object sender, EventArgs e) in C:\Users\Administrator\Downloads\CRM 2011 Customer Portal\CustomerPortal\CustomerPortal\Web\Pages\Events\Registration.aspx.cs:160
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707
 

 

 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

comments