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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM plugin using Visual C# Express

(0) ShareShare
ReportReport
Posted on by 255

I have a really simple test plugin for CRM 4.0, written with C# Express 2008 -- It simply throws an exception when the user tries to create an Account.  When compiled with C# Express 2008, the plugin registers just fine.  However, I have recently migrated my work to a new development box and downloaded VS C# Express 2010.  Now, when I compile the plugin I get one of 2 IO error messages from the registration tool:

 

Could not load file or assembly 'Microsoft.Crm.Sdk' ... etc.

Assembly name ... <snip> ... cannot be parsed.

 

To clarify, I'm attempting to register these plugins against the same CRM instance on the same development server as before.  I am simply compiling with the 2010 version as opposed to the 2008 version of VS C# Express.

Any thoughts?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Jon Wire Profile Picture
    255 on at

    Could this be 32/64-bit related?  If so, where do I set the target platform -- can I even make that distinction in the express edition?

  • Jeremy Winchell Profile Picture
    1,165 on at

    Also, could this be an issue with .NET versions?  .NET 4.0 assemblies will not work with CRM 4.0, at least that is my understanding.

  • Verified answer
    Jon Wire Profile Picture
    255 on at

    My apologies -- I got this figured out and forgot I had a thread for the issue!

    I had to register the 64-bit SDK assemblies in my local GAC and reference the GAC'd ones in my project.  Odd, to some extent -- on the old PC, I had just referenced the assemblies in some random folder and it worked fine.  Perhaps I had them in the GAC, forgot I put them there, and inadvertently created an anomalous situation wherein the registration tool needed the assemblies in the GAC to be referred to specifically ... ?

    In any case, those were the resolution steps:

    1. register the 64-bit SDK assemblies

    2. change the references in my project to point to the assemblies in the GAC

    Fin.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans