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

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,985 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,289 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans