Thursday, October 27, 2011

CRM 2011 - Form Loading Error

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: Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.] at Microsoft.Crm.Application.Controls.AppNavigationBar.CreateOrderedAreas(NavPaneItems navPaneItems)

To Resolve This Import Customization Again as Manage Solution.

Tuesday, October 18, 2011

Run 32 bit .NET applications on 64 bit machines

Open up command prompt and type this command

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe SetWow

Now you should be able to run apps that use only the .NET 32 bit CLR.

To revert back to the default 64 bit framework run

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe Set64

Wednesday, October 12, 2011

Java Script Error - INVALID_CHARACTER_ERR (5) -.createElement

Error In,
document.createElement(<div id="div1">)

To Resolve This,
Create div tag separately and add attribute after created element.
var divEle=document.createElement('div');
divEle.setAttribute("id", "div1");

Monday, October 3, 2011

CRM 2011 - Day Light Issue-Convert Date Time C# Code

Get DaylightChanges hours in CurrentTimeZone and add it to the Date.
//CurentDate Date Time Save in the CRM
TimeZone localZone = TimeZone.CurrentTimeZone;
DaylightTime hours= localZone.GetDaylightChanges ( CurentDate.Year );
CurentDate = CurentDate.AddHours ( hours.Delta.Hours );