Category Archives: C#

Resolution for C# Unit test project error : UTA002: TestClass attribute cannot be defined on generic class

if you ever have tried writing a generic class with attribute set to [TestClass] ass below , you might have got Runtime error which begin with “UTA002: TestClass attribute  cannot be defined on generic class”  & follows multiple such codes … Continue reading

Posted in C#, UnitTest | Tagged , , , , , , , | Leave a comment

Get Option set Value from Text in crm 2011 using CRM SDK c# code

it happens while performing migration we get the string values for the option sets as input, but while updating in crm using SDK code we need the Optionset Numeric value. the below code show cases how to handle any optionset … Continue reading

Posted in .Net, C#, CRM 2011, CRM 2011 Online, CRM 2011 SDK | Tagged , , , , | Leave a comment

Bulk user Migration to CRM 2011 online, from excel sheet through C#,.Net code- assign Business Unit, assign Security role and Manager etc

I had the requirement to perform bulk user migration to CRM 2011 online, from an excel file. I wrote the below code to do so, and it was very helpful. Code to redirecting the Standard Output to a file.  FileStream ostrm; … Continue reading

Posted in .Net, C#, CRM 2011, CRM 2011 Online, CRM 2011 SDK | Tagged , , , , , , | Leave a comment