“An Error Has Occurred” while opening form in CRM 2011.

I was getting the following error while opening form of one of the entity (new_client) after upgrading the CRM server from beta version to RTM.

and inside application log

Exception information:

Exception type: NullReferenceException

Exception message: Object reference not set to an instance of an object.

at Microsoft.Crm.Application.Controls.AppNavigationBar.CreateOrderedAreas(NavPaneItems navPaneItems)

at Microsoft.Crm.Application.Controls.AppNavigationBar.ConfigureControl()

at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.ConfigureControlInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

The issue was we had commented some of the NavBarArea tag within the FormXml of the Entity.

<!–<NavBarArea Id=”Service”><Titles><Title LCID=”1033″ Text=”Service”/></Titles></NavBarArea><NavBarArea Id=”Marketing”><Titles><Title LCID=”1033″ Text=”Marketing”/></Titles></NavBarArea>–>

Uncommenting it and importing it again resolved the issue.

This was not creating issue for the beta version, however it seems that it won’t allow us to do that in the RC or RTM version.


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s