C# Console App connect to Dynamics 2011 Online

50cal
50cal used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Todd GerbertIT Consultant
Top Expert 2010

Commented:
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?
IT Consultant
Top Expert 2010
Commented:
Looks like it's in a source code file, you might need to add sdk\samplecode\cs\helpercode\deviceidmanager.cs to your project.
Top Expert 2011

Commented:

Author

Commented:
Thank You.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial