Showing posts from 2011

CRM 4.0 Blank Blue Page with JavaScript Error

After installation of CRM and accessing the CRM web client, the page stopped loading at an empty blank blue page and there was a JavaScript error at the left corner of the statusbar with the following details:

Line: 194
Char: 1
Error: Object expected
Code: 0
URL: http://localhost:5555/orgname

Actually that was the default.aspx and when we tried to access loader.aspx, the page was loading but not properly and the images are also missing.

We browsed across all the forums and blogs and found out that such problem is quite common. After trying out a few ways as mentioned in the solutions, we managed to fix this issue by enabling the anonymous access of the CRM website, inheritance override for all the components, and disable back the anonymous access of the CRM website. Here’s the step by step solution for this issue.

1. Go to the IIS Manager and go to the Properties of CRM website.

2. In the Directory Security tab, click the Edit button for Authentication and access control.

3. Enable a…

Unsupported method for adding Calibri in email font selection of MSCRM 4.0/2011

Starting from Office 2007, Calibri became the default font and almost all the Outlook users just send out their mail with default font. So, for some organizations who send out email directly from CRM web client, they want an option to add the 'Calibri' font into CRM's font selection field in the email form and make it as the default font believing that it may result in a more consistent corporate image.
In order to achieve this, we've got to do unsupported modification of one aspx file in MS CRM application and so should only ever be used with caution.
This method is adding LOCID_HTMLBAR_DEFAULTFONTS in the aspx file to override the default values.

In CRM 4.0, we need to add the following line of code in "..\CRMWeb\Activities\email\edit.aspx" file.
<script language="JavaScript" type="text/javascript"> // INSERT THIS BLOCK LOCID_HTMLBAR_DEFAULTFONTS = "Calibri,Arial,Arial Black,Tahoma,Verdana,Garamond,Times New Roman,Couri…

Adding Tabs in CRM 2011 Forms like CRM 4.0 Forms

Sometimes, the users are so used to with the tabs from CRM 4.0 forms that they are not happy with the tab sections from CRM 2011 forms. And sometimes, the input data from one tab has to be populated in another tab according to the workflow of the business process.
In such situations, we've got no choice but to simulate the tabs of CRM 4.0 form by embedding an HTML web resource with tab controls in the header of the form which will show/hide the tab sections upon clicking.

To start implementing, download the HTML file from here.
Upload that HTML file as a web resource in your CRM organization solution.
Open the form that you want to add tabs and insert the uploaded web resource in the header of that form.
Go to the Formatting tab and change the number of rows to 1 and occupy all columns in layout.

Save the form and publish.
So, the final result of the form will be as shown in the screenshot below.

PS: Currently, I've just added 12 tabs in the html web resource so that it can ha…

Debugging Silverlight Webresources without deploying in CRM 2011

You'll need to create one clientaccesspolicy.xml in the Web-Folder of your CRM-System. (\..\Microsoft Dynamics CRM\CRMWeb\)
The content of the clientaccesspolicy.xml is as follows.

<?xml version="1.0" encoding="utf-8"?> <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="*"> <domain uri="*"/> </allow-from> <grant-to> <resource path="/" include-subpaths="true"/> </grant-to> </policy> </cross-domain-access> </access-policy>
Read more about it {Markus Konrad} blog.

C# class to limit the threads to execute no more than X tasks per unit of time

I just put the code as a screenshot just for backup in case the source can no longer be accessible.
If you want to copy the code as text, you can go and see it here.