locked
Error creating crm 2011 custom workflow. "The type or namespace 'Xrm' does not exist in the namespace 'Microsoft'" RRS feed

  • Question

  • This is strange. I have created a new custom workflow in VS 2010. Added reference to Microsoft.Xrm.Sdk and Microsoft.Xrm.Sdk.Workflow that are found the SDK.

    As I type in the using using Microsoft.Xrm.Sdk; and using Microsoft.Xrm.Sdk.Workflow; all looks fine but as soon as I build the project an error saying:

     

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

     

    I tried using other dll files but the error remains the same. Any sugestions?

     

     

    Friday, May 27, 2011 9:36 AM

Answers

  • I got the same error with console application, when I checked the target framework it was ".NET Framework 4 Client Profile" and when changed to ".NET Framework 4" only the problem disappeared.
    Islam Eldemery
    http://idemery.net
    idemery
    Saturday, May 28, 2011 10:44 AM

All replies

  • I got the same error with console application, when I checked the target framework it was ".NET Framework 4 Client Profile" and when changed to ".NET Framework 4" only the problem disappeared.
    Islam Eldemery
    http://idemery.net
    idemery
    Saturday, May 28, 2011 10:44 AM
  • Thank you. :-)
    Monday, May 30, 2011 6:48 AM
  • Thanks alot it worked
    Saturday, February 25, 2012 1:50 PM
  • Thanks, that solved my problem too.

    Friday, March 16, 2012 10:14 AM