“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.

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2711.


I was getting the above error while uninstalling CRM 2011 Server beta.

Uninstalling Microsoft Dynamics CRM 2011 for Microsoft Office Outlook before uninstalling Server resolved the issue.

Showing a custom aspx deployed in ISV in IFrame of CRM form (CRM 2011)


We had one of our web application deployed inside ISV folder in CRM 2011. We were showing one of the aspx pages in it inside an IFrame of a form.

First we specified the relative url like this for URL field in CRM form

/ISV/myWebApplication/Default.aspx

However on form we were getting page not found error.

Using developer tools, we found out that it was taking the url (src) for the iframe as

/contoso/isv/myWebApplication/Default.aspx

It was appending the organization name to it.

In CRM 4 this wasn’t the case.

Then we gave the absolute url for URL field in IFrame.

http://servername/isv/myWebApplication/Default.aspx.

However this time also we got page not found error. The url that it was using was

http://servername/contoso/isv/myWebApplication/Default.aspx i.e. again appending orgname to it.

The way we got it working was to define the src of the Iframe dynamically in the form onload event’s JavaScript.

function IframeSrc(){

crmForm.all.IFRAME_Map.src=”/ISV/ myWebApplication / Default.aspx”;

}

Hope it helps !

Wonderful tools to learn Linq and oData Query for CRM 2011


Check out these wonderful tools to lear Linq and oData Query

Bye.

Using Organization.svc in Silverlight Application


Hi,

While searching for how to use Organization.svc within a silverlight application, i found these 2 helpful posts

http://msdn.microsoft.com/en-us/library/gg594452.aspx#Y1145  

http://erikpool.blogspot.com/2010_12_01_archive.html

The other easier option that i can think of is creating a custom wcf service that uses Organization.svc and using this custom wcf service in the silverlight application.

Download the solution here 

http://www.box.net/shared/pgditixq1o

Bye.

The organization database version is not supported for upgrade – error while importing organization in CRM 2011


After restoring the database to the server, I got the following error while importing the organization using the Deployment Manager

The build version of the database that I was importing was different than the build version of the database of the organization that I already had there.

http://support.microsoft.com/kb/946594 ( to find the build version of the database)

The one we were importing had higher build version.

Than we installed the update for Microsoft Dynamics CRM 2011 Release Candidate

http://support.microsoft.com/kb/2461082

Restarted the server and was able to import the organization successfully.

Hope it helps.