The type initializer for ‘Microsoft.Crm.LocatorService’ threw an exception. Input string was not in correct format in CRM 4


Hi ,

Was getting the error while trying to install CRM 4.0.

The following is the kb article for the same

http://support.microsoft.com/kb/949092
http://support.microsoft.com/kb/300956/

Tried first by repairing/reinstalling dotnet framework 3.0, however the error was not resolved.

Than tried the second method of rebuilding the performance counter, and that worked !!

Bye..

Sort SPFolder in SharePoint


We developed a web part showing the folders hierarchy using tree view control. However the folders were not getting displayed in the tree view node in the order they are visible inside the document library i.e. sorted on name.

Creating a tree view

http://www.davehunter.co.uk/Blog/Lists/Posts/Post.aspx?List=f0e16a1a-6fa9-4130-bcab-baeb97ccc4ff&ID=115

So finally used the following code to sort the folders

List<SPFolder> folderList = new List<SPFolder>();

foreach (SPFolder myFolder in folder.SubFolders){

folderList.Add(myFolder);

}

folderList.Sort(delegate(SPFolder p1, SPFolder p2) { return p1.Name.CompareTo(p2.Name); });

For more information on sorting

http://www.developerfusion.com/code/5513/sorting-and-searching-using-c-lists/

Bye..

Important urls in Microsoft Dynamics CRM 4 for quick reference


Hi,

While browsing got this information, so  thought better share it

Accounts – http://server:port/orgname/_root/homepage.aspx?etc=1
Contacts – http://server:port/orgname/_root/homepage.aspx?etc=2
Opportunities – http://server:port/orgname/_root/homepage.aspx?etc=3
Leads – http://server:port/orgname/_root/homepage.aspx?etc=4
Marketing List – http://server:port/orgname/_root/homepage.aspx?etc=4300
Reports – http://server:port/orgname/CRMReports/home_reports.aspx
Activities – http://server:port/orgname/workplace/home_activities.aspx
Calendar – http://server:port/orgname/workplace/home_calendar.aspx
Articles – http://server:port/orgname/workplace/home_answers.aspx
Queues – http://server:port/orgname/workplace/home_workplace.aspx
Competitors – http://server:port/orgname/_root/homepage.aspx?etc=123
Products – http://server:port/orgname/_root/homepage.aspx?etc=1024

Sales Literature – http://server:port/orgname/_root/homepage.aspx?etc=1038
Quotes – http://server:port/orgname/_root/homepage.aspx?etc=1084
Orders – http://server:port/orgname/_root/homepage.aspx?etc=1088
Invoices – http://server:port/orgname/_root/homepage.aspx?etc=1090
Quick Campaigns – http://server:port/orgname/MA/home_minicamps.aspx
Campaigns – http://server:port/orgname/MA/home_camps.aspx
Cases – http://server:port/orgname/CS/home_cases.aspx
Contracts – http://server:port/orgname/_root/homepage.aspx?etc=1010

Services – http://server:port/orgname/_root/homepage.aspx?etc=4001
Advanced Find – http://server:port/orgname/AdvancedFind/AdvFind.aspx

CRM Help – http://server:port/orgname/help/default.aspx

Customization Menu – http://server:port/orgname/tools/systemcustomization/systemcustomization.aspx
Entity Customization DataGrid – http://server:port/orgname/tools/systemcustomization/systemcustomization.aspx?PID=01
Import Customizations – http://server:port/orgname/tools/systemcustomization/systemcustomization.aspx?PID=03
Export Customizations – http://server:port/orgname/tools/systemcustomization/systemcustomization.aspx?PID=03

 

Thanks to Douglas Leung !

http://sharepointsix.blogspot.com/2007/06/microsoft-crm-30-integrating-crm-into.html

Bye…

Dynamic Values in Workflow in CRM 4


We were facing an issue today; the issue was something like this

We were sending mail in one of our workflow, in the to field of the workflow we had set multiple users name as dynamic values. But we found that mail was being sent to only one user, i.e. the first user only.

Than we found out that if we add multiple values in Look For dialog box and click on ok to add all those together, only the first field having value would be picked by workflow.

For e.g. if I add (created by), (manager of the user field) in the look for dialog box and click on ok to add them together, the workflow would only pick the value for first field i.e. (created by) field for which value exists. It would ignore the manager of the user field. 

However if we add them separately i.e. first add (created by) field and then look for (manager of the user field) and add that field than we could have values for both the field. 

Bye…

File not found error in NewDwp.aspx SharePoint


Hi,

I was getting this error while trying to all a new custom web part to the site.

Searching for the same found out the reason for that

It happens when you install smart part

http://www.codeplex.com/smartpart

But haven’t installed asp.net ajax 1.0 version !

http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en

Follow it with an iis reset !!

Bye ..

Read Only Tab in CRM


Hi,

This is something i tried for setting all the fields within a tab as read only or disabled !

// get the div element corresponding to tab, first tab would have index Tab0, second as Tab1 and so on ..

var el=document.getElementById(‘Tab2’);

// create a recursive function

function toggleDisabled(el) {

try {

el.disabled = el.disabled ? false : true;

}

catch(E){}

if (el.childNodes && el.childNodes.length > 0) {

for (var x = 0; x < el.childNodes.length; x++) {

toggleDisabled(el.childNodes[x]);

}

}

}

// call the function

toggleDisabled(el);

To hide and setting a parituclar tab as default

http://mscrm4ever.blogspot.com/2008/09/crm-40-tab-how-to-tips.html

Bye…