**First CRM 2011 Post **
Started working on the CRM 2011 Beta this week (like every other MSCRM geek!) and i came across a rather annoying problem when trying to browse my upgraded CRM 4.0 Demonstration Organisations - now known as "Deployment".
Looking at the trace (which is enabled the same way as CRM 4.0) I came across the following message.
>MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Error Message: 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.
Error Details: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source File: Not available
Line Number: Not available
Request URL: http://demo01:5555/CRMDemonstration/main.aspx
Stack Trace Info: [KeyNotFoundException: The given key was not present in the dictionary.]
at System.Collections.Generic.SortedDictionary`2.get_Item(TKey key)
at Microsoft.Crm.Application.SiteMapSubArea.Deserialize(XmlWriter writer, Boolean structureOnly)
at Microsoft.Crm.Application.SiteMapGroup.Deserialize(XmlWriter writer, Boolean structureOnly)
at Microsoft.Crm.Application.SiteMapArea.Deserialize(XmlWriter writer, Boolean structureOnly)
at Microsoft.Crm.Application.SiteMap.Deserialize(XmlWriter writer, Boolean structureOnly)
at Microsoft.Crm.Application.Controls.AppNavBar.ConfigureHeader()
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.ConfigureControlInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Error is pointing to the sitemap.
As this is still in Beta, i posted the problem in the 2011 Beta Forum and one of the bods at MS alerted me of a known bug that causes this error.
The solution is to add the parameters to any custom sitemap enties (pointing to your custom ISV application) in CRM 4 and then back up the organisation database to be upgraded.
e.g.
Url="/isv/test/app.aspx"
should be changed to
Url="/isv/test/app.aspx?etc=&etn="
However the above should only be done to CUSTOM aspx page URLS, otherwise this will cause even more problems in the upgraded SiteMap,
Im assuming this bug will be ironed out