Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Issue with CRM SDK v9

Posted on by 110

Hi,

I am having a weird issue.

Org version: 9.0.2.761

SDK Version: 9.0.2.409

.NET Version: 4.6.1

VS 2012

When stepping through my code in the debugger, this code always give me null value for both OrganizationWebProxyClient  or OrganizationServiceProxy

var _orgService = (IOrganizationService)conn.OrganizationWebProxyClient != null ? (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;

But when I ran my code in non debug mode, everything works flawlessly

Any idea?

  • Verified answer
    boomboomroom Profile Picture
    boomboomroom 110 on at
    RE: Issue with CRM SDK v9

    Looks like it's a known issue with debugging in VS

    community.dynamics.com/.../279266

    Known Issue with Visual Studio 2015

    When you are running your project/solution in VS 2015 in debug mode, there is a known issue where you may not be able to connect to Dynamics 365 (online), version 9.0. This happens regardless of whether you are using a Target Framework of 4.6.2 or higher. This can occur because the Visual Studio hosting process is compiled against .NET 4.5 which means by default it does not support TLS 1.2. You can disable the Visual Studio hosting process as a work around. Right-click on the name of your project in Visual Studio and then click Properties. On the Debug tab you can uncheck the Enable the Visual Studio hosting process option.

    Please Note: This only impacts the debug experience in VS 2015. This does not impact the binaries or executable that are built. The same issue does not occur in Visual Studio 2017.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans