Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Dynamics CRM CRUD Operations

Posted on by 80

Hi All,

I have created console App for On Premise Dynamics CRM with .Net Framework 4.7.2 and latest packages Microsoft.CrmSdk.XrmTooling.CoreAssembly & Microsoft.CrmSdk.CoreAssemblies. This was working fine and was needed to be hosted in Dynamcis CRM Server as exe in Task Scheduler.


But my Client has installed .Net Framework 4.0.0 in Dynamics CRM Server and it cannot be upgraded. Hence I changed the .Net Framework to 4.0.0 in Console App and uninstalled lastest packaged and added Microsoft.CrmSdk.XrmTooling.CoreAssembly -version 6.1.1 & Microsoft.CrmSdk.CoreAssemblies -version 6.1.1. But I see a lot errors in code like for below lines:


CrmServiceClient crmSvc = new CrmServiceClient(ConfigurationManager.ConnectionStrings["OnPremCRM"].ConnectionString);

EntityCollection eccr = crmSvc.RetrieveMultiple(cr);

crmSvc.Update(entcur);

I am not sure , What I am missing here. Thanks for the help.

Regards,
Persis

  • Persis Profile Picture
    Persis 80 on at
    RE: Dynamics CRM CRUD Operations

    The CRM On Premise Version is 9.0

    7713.CRM-Version.pngpastedimage1669372712261v3.pngpastedimage1669372829608v1.png

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Dynamics CRM CRUD Operations

    which exact CRM version you are using? because if is CRM 2011 then you need to use previous SDK, not the nuget packages. If is a recent version (like 8.0, 8.2 or 365 9.0) then inside that server there is already .net 4.6.2 or greater

  • Persis Profile Picture
    Persis 80 on at
    RE: Dynamics CRM CRUD Operations

    The console app will be hosted on CRM Server itself and the .Net Framework version is CRM Server is 4.0.0. hence I had downgrade the framework version in console app, is there way to get this working in framework 4..0.0

    Regards,

    Persis

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Dynamics CRM CRUD Operations

    you will need to use at least 4.6.2, if the console app is running on the same CRM server that version is present, if the console app is running on another server then install 4.6.2 on that server.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans