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

Notifications

Announcements

No record found.

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)
  • EmployeeOcta Profile Picture
    6 on at

    What error are you getting.

    please paste the error here.

    meanwhile check the below link especiaaly requirement section.

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

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    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.

  • Community Member Profile Picture
    on at

    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;

           }

  • Mahendar Pal Profile Picture
    45,095 on at

    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

    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 ?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans