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

Announcements

No record found.

News and Announcements icon
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 82

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
    82 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
    82 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 192 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans