How to Integrate your application to Microsoft CRM 2011 using CRM 2011 SDK and C#?
Edit: I moved my question to the answer to follow the question and answer format. according to Guido Preite.
How to Integrate your application to Microsoft CRM 2011 using CRM 2011 SDK and C#?
Edit: I moved my question to the answer to follow the question and answer format. according to Guido Preite.
Because I'm now in a habit of sharing new things I learn everyday, I'm just gonna show here how I connected to Microsoft CRM 2011 using CRM 2011 SDK and C#. This will help you not to bang your head on the wall like I did a while ago.
First add a reference to your project to the Microsoft.Xrm.Sdk.dll. which you can get from the CRM 2011 sdk(download it here: http://www.microsoft.com/en-us/download/details.aspx?id=24004).
here is the code on how to connect to the CRM Service:
Reference: http://nishantrana.wordpress.com/2010/11/03/sample-code-for-using-iorganizationservice-in-crm-2011/
http://msdn.microsoft.com/en-us/library/gg334708.aspx
http://msdn.microsoft.com/en-us/library/gg328149.aspx
http://www.codeproject.com/Articles/559599/Integrating-your-applications-with-MS-CRM-Online
In Addition if you happen to encounter a exception like this:
Install : Windows Identity Foundation (http://www.microsoft.com/en-us/download/details.aspx?id=17331)
I hope I helped some of you with your project.