web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

The type or namespace name 'XRM' does not exist

(0) ShareShare
ReportReport
Posted on by 445

Hi,

I'm receiving the following error in visual studio community 2013 while working with Dynamics crm online.


The type or name XRM does not exist in the namespace 'Microsoft'(are you missing an assembly reference)

*This post is locked for comments

I have the same question (0)
  • Elangamban Profile Picture
    445 on at
    RE: The type or namespace name 'XRM' does not exist

    Hi Jason,

    Thanks for the suggestion, I've installed using Nuget Package management tool.

    Worked fine.

  • Verified answer
    Jason M. Cosman Profile Picture
    5,234 Moderator on at
    RE: The type or namespace name 'XRM' does not exist

    I would actually recommend using the Nuget Package management tool for getting the SDK assemblies. Microsoft releases all of them in nugget packages and this is a better solution for source controlled projects. www.nuget.org/.../Microsoft.CrmSdk.CoreAssemblies

  • Rickard Norström Profile Picture
    on at
    RE: The type or namespace name 'XRM' does not exist

    You need to download the 2016 SDK (www.microsoft.com/.../details.aspx) and then make a reference to the relevant DLL in the bin folder.

    That aside, what is it you're trying to do? The SDK also contains some code examples which might help you.

    Hope it helps.

  • Elangamban Profile Picture
    445 on at
    RE: The type or namespace name 'XRM' does not exist

    Hi Rickard,

    How to do that, I'm new to this.

    Thanks.

  • Rickard Norström Profile Picture
    on at
    RE: The type or namespace name 'XRM' does not exist

    Hi,

    Have you added a reference to the assemblies you want to use?

    Regards

  • Elangamban Profile Picture
    445 on at
    RE: The type or namespace name 'XRM' does not exist

    Hi,

    Thanks for the reply, its set to 4.5.2.

  • TNS Profile Picture
    1,197 on at
    RE: The type or namespace name 'XRM' does not exist

    Hi,

         Try this:

               Check your .Net framework is it  .Net Framework 4 Client Profile and if it is then change it to  .NET Framework 4.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans