web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Which .net framework version to used with CRM Sdk 2016

(0) ShareShare
ReportReport
Posted on by

Hello Guys,

I am suffering alot with this issues i am unable to use OrganizationService & CrmConnection classes in my WCF interface its throws versioning errors i got vs 2012 and .net framework 4.6.1 please suggest how do i use this classes 

 Microsoft.Xrm.Client.CrmConnection connection = Microsoft.Xrm.Client.CrmConnection.Parse(con);

using (Microsoft.Xrm.Client.Services.OrganizationService orgService = new Microsoft.Xrm.Client.Services.OrganizationService(connection))
{

};

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Which .net framework version to used with CRM Sdk 2016

    I have Net 4.5.2, in Windows 2012 R2, and CRM 2016 installed.

    I use VS 2013.

    I want créate WCF Services .NET 4.6.1, and hosting in IIS 8.5 in the Windows 2012 R2 + CRM 2016 server.

    CRM 2016 manages Net 4.5.2.

    Any problems if I install Targeting Pack .NET Framework 4.6.1 ?

  • Mahendar Pal Profile Picture
    45,095 on at
    RE: Which .net framework version to used with CRM Sdk 2016

    Hello,

    Which framework is selected under target framework in your project properties, make sure correct framework is selected there, you may get this error when client profile version selected under targeted framework.

    Thanks

  • Community Member Profile Picture
    on at
    RE: Which .net framework version to used with CRM Sdk 2016

    I am trying to connect to MS CRM by CrmConnection ,OrganizationService  classes but it  says namespace missing please suggest a best class to connect to MS CRM easily

    CrmConnection connection = CrmConnection.Parse(con);

                   using (Microsoft.Xrm.Client.Services.OrganizationService orgService = new Microsoft.Xrm.Client.Services.OrganizationService(connection))

                   {

                       //using (_serviceProxy = new OrganizationServiceProxy(

                       //    oUri, null, clientCredentials, null))

                       //{

                       string fetch3 = @"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>

     <entity name='lead'>

       <attribute name='fullname' />

       <attribute name='companyname' />

       <attribute name='telephone1' />

       <attribute name='leadid' />

       <attribute name='mobilephone' />

       <order attribute='fullname' descending='false' />

       <filter type='and'>

         <condition attribute='fullname' operator='not-null' />

         <condition attribute='mobilephone' operator='not-null' />

       </filter>

     </entity>

    </fetch>";

                       EntityCollection result = _serviceProxy.RetrieveMultiple(new FetchExpression(fetch3));

                       //   EntityCollection result = _service.RetrieveMultiple(new FetchExpression(fetchXml));

                       foreach (var item in result.Entities)

                       {

                           Lead lea = new Lead();

                           lea.firstname = item.Attributes["fullname"].ToString();

                           lea.mobile = item.Attributes["mobilephone"].ToString();

                           leadlist.Add(lea);

                       }

                   }

               }

               catch (Exception ex)

               {

                   string result = "Exception: " + ex.Message;

               }

               return leadlist;

           }

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: Which .net framework version to used with CRM Sdk 2016

    Did check CRM SDK:

    From SDK:

    The following describes the support considerations for custom code written with Microsoft Visual Studio 2012 or 2013 and the Microsoft .NET Framework 4.5.2.

    Any web service client created by using Visual Studio and the Microsoft .NET Framework 4.5.2 that calls the Microsoft Dynamics CRM web services is fully supported in Microsoft Dynamics CRM. The use of ASP.NET AJAX is supported.

    Any .NET assembly that is created with Visual Studio and the Microsoft .NET Framework 4.5.2 for use in Microsoft Dynamics CRM as a Microsoft Dynamics CRM plug-in assembly or as a Microsoft Dynamics CRM custom workflow activity is supported.

    Any visualization (chart) that is created with .NET Framework 4.5.2 .

    For backwards compatibility, these endpoints can be used with earlier versions of the .NET Framework as follows:

    The 2011 endpoint supports .NET Framework 4.

  • EmployeeOcta Profile Picture
    6 on at
    RE: Which .net framework version to used with CRM Sdk 2016

    What error are you getting.

    please paste the error here.

    meanwhile check the below link especiaaly requirement section.

    www.microsoft.com/.../details.aspx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans