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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dynamics CRM CRUD Operations

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    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.

  • Persis Profile Picture
    80 on at

    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
    54,086 Moderator on at

    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
    80 on at

    The CRM On Premise Version is 9.0

    7713.CRM-Version.pngpastedimage1669372712261v3.pngpastedimage1669372829608v1.png

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans