Avatar of 50cal
50cal
Flag for United Kingdom of Great Britain and Northern Ireland asked on

C# Console App connect to Dynamics 2011 Online

Hi All,

Can anyone advise why the C# CrmServiceHelper class from the 2011 Dynamics SDK does not compile?
Microsoft.Crm.Services.Utility.DeviceIdManager.LoadOrRegisterDevice();
fails with
Error      1      The type or namespace name 'Services' does not exist in the namespace 'Microsoft.Crm' (are you missing an assembly reference?)      C:\....PATH....\crmservicehelpers.cs      384      34      Feedback

Any Ideas?


Thanks,
50cal
C#Microsoft Dynamics

Avatar of undefined
Last Comment
50cal

8/22/2022 - Mon
Todd Gerbert

I'm not familiar with MS Dynamics, but based on the error you need to right-click on your project, choose Add Reference, and add a Dynamics DLL as a reference. Do you have any documentation on what namespaces are in what DLL's?
ASKER CERTIFIED SOLUTION
Todd Gerbert

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
dj_alik

50cal

ASKER
Thank You.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes