Crm 2011 Plugins & SharePoint 2010 INtegration
-
Wednesday, August 22, 2012 9:18 AM
Dear all,
I have installed Dynamics CRM 2011 & Sharepoint Server 2010 on a Windows Server 2088 R2 server.
I am creating a plugin which will create a predefined set of folders automatically on the SharePOint 2010 upon creation of an Account.
I was able to do it on CRM 4.0 and sharepoint 2007.
Now I am getting error when tyring to access the site:
SPSite _MySite = new SPSite(@"http://Servername:5644/");
SPWeb _MyWeb = _MySite.OpenWeb();I am getting the following error:
Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime.
Has anybody able to create folders programmatically using plugins?
Any help is great appreciated.
Thanks
Regards
Vinay
- Changed Type Andrii ButenkoMVP, Moderator Wednesday, September 19, 2012 9:39 AM
All Replies
-
Wednesday, September 19, 2012 9:46 AMModerator
Hello,
I believe that you've referenced used Sharepoint SDK assemblies.
Have you tried to add service reference to Sharepoint EndPoint and use it instead of Sharepont SDK assembly?
-
Wednesday, September 19, 2012 10:21 AM
Hi,
I think you should change the .NET framework to 3.5 in order to use Sharepoint assemblies.
My blog: Codes Tips
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question. -
Wednesday, September 19, 2012 10:32 AMModerator
Hi,
I think you should change the .NET framework to 3.5 in order to use Sharepoint assemblies.
My blog: Codes Tips
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.
I believe that it impossible to write plugin for CRM 2011 using .Net framework 3.5. Correct me if I'm wrong.

