CRM 2011 - Developer Toolkit - The given key was not present in the dictionary
-
Thursday, March 29, 2012 4:24 AM
I am trying to use the CRM 2011 Developer Toolkit "Plugin" template for Visual Studio. After I have created a new CRM 2011 plugin project, I try and create a plugin by right clicking the entity in the "CRM Explorer". Everytime I do that, I get an error "The given key was not present in the dictionary".
I have tried multiple entities and I always get the same error.
I have restarted Visual Studio, restarted the computer, reinstalled/repaired the developer toolkit installation - no luck.
Help!
Note: I upgrade CRM 4.0 in place to CRM 2011
http://blog.aggregatedIntelligence.com/
- Moved by Andrii ButenkoMVP, Moderator Thursday, March 29, 2012 9:55 PM (From:CRM)
All Replies
-
Sunday, April 01, 2012 4:33 PMModerator
Interesting. Are you able to see what line of code it is breaking on. It sounds like it is looking for something in CRM that isn't there.
Also, you don't have to use the dev toolkit if you don't want. I would recommend looking at the plugins examples in the sample code and maybe just reworking the example as a template for your plugin code.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter! -
Sunday, April 01, 2012 7:25 PMModeratorWhich version of the SDK are you using, and what Rollup Update is deployed to the server upon which you're developing?
Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.com Please follow the forum guidelines when inquiring of the dedicated CRM community for assistance.
-
Monday, April 02, 2012 12:32 AM
No, I am not able to see which line of code is breaking, as its happening in the VS plugin that is incharge of buidling up the code for the plugin. (Is there a way for me debug it, I wasnt aware of any PDB files that I could use to figure out where the code was breaking).
Also, I did end up creating my plugin from scratch, but I was intrigued by the base class that was being used by the plugin code and wanted to see how the code would be used. (I did figure it out some and hence was able to reuse the LocalPluginContext class that was being generated by the template).
Though I would like to get the VS add in working, as it would be nice and also, now I am worried that there maybe something wrong with my CRM 2011 instance which was upgraded from CRM 4.
http://blog.aggregatedIntelligence.com/
-
Monday, April 02, 2012 12:33 AMI am using the latest version of SDK (released in March 2012). (not sure where I could find the build number). Also, the Rollup I am using is Rollup 7.
http://blog.aggregatedIntelligence.com/
-
Monday, April 02, 2012 9:47 AMModerator
You can debug a plugin by this methodology:
http://msdn.microsoft.com/en-us/library/gg328574.aspx
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter! -
Tuesday, April 03, 2012 4:32 AMModeratorI have a sandbox server that is experiencing the same issue. It was a fresh install. It has 2 organizations, one was used for some testing and the other not really used. The one that was being used for testing is experiencing the same issue when trying to create a plugin through the developer toolkit, the other does not. I've tried from 2 different machines running VS2010 and both get the error on the same organization.
Jason Lattimer
-
Wednesday, April 04, 2012 4:40 AMModerator
I deleted my problem organization from Deployment Manager and re-imported it and it cleared up the issue.Jason Lattimer
- Proposed As Answer by JLattimerMicrosoft Community Contributor, Moderator Wednesday, April 04, 2012 4:40 AM
- Marked As Answer by Jamie MileyMVP, Moderator Thursday, March 07, 2013 7:23 PM

