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

connecting to on-premise CRM from C#

(0) ShareShare
ReportReport
Posted on by 197
Hello everyone,
I have an experience with connecting to Dynamics on cloud with c# sdk, but now I have to do some stuff for on-premise environment. From several tries I understood that I can't connect to it the way I do for cloud one.
I have searched online and no forum threads are useful for me.
Can you please give me some guidance on how to connect to the on premise environment with my c# console/web api application in order to manipulate some data ?
Thanks
I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    actually it's the same, you can still use CrmServiceClient, maybe you will need to use an older version of the SDK libraries. You will need to setup the connection string accordingly, and if connecting outside of the network where the onpremise resides, you need to look at ADFS configuration and make sure the onpremise is reachable from outside its network.

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    HI,

    Please look at below article. I have tried this code and ot works on my onpremise instance -

    arunpotti.com/.../

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Ram Prakash Duraisamy Profile Picture
    2,287 on at

    Hello,

    Steps to Follow:

    1. Dont install SDK from Nuget Packages

    2. Navigate to your Server --> open IIS --> Open Folder Where CRM is Installed --> Open Bin Folder --> Copy the SDK from there

    3. Use Add Existing dll.

    This will 100% help you the same

    Please mark as Answer if it is helpful and provide Kudos

    Subscribe : www.youtube.com/.../UCnGNN3hdlKBOr6PXotskNLA

    Blog : microsoftcrmtechie.blogspot.com

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 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans