Error Message - Register New Plugin

Apr 3, 2009 at 2:19 PM
Hi,

I do get the following error after I tried to register the dll. I am using the plugin registration tool Version 2.2 and after the I press the Load Assembly button this box appears. Any Idea what I am doing wrong?

Looking forward to be able to use these great little helper. Thanks for shareing this code with us!

Cheers


Unhandled Exception: System.IO.FileNotFoundException: Die Datei oder Assembly "PluginRegistration, Version=2.2.0.0, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
   bei System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   bei System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   bei System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   bei System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   bei System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
   bei System.Activator.CreateInstance(String assemblyName, String typeName)
   bei System.AppDomain.CreateInstance(String assemblyName, String typeName)
   bei System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
   bei System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
   bei PluginRegistrationTool.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly)
   bei PluginRegistrationTool.PluginRegistrationForm.btnLoadAssembly_Click(Object sender, EventArgs e)
Apr 3, 2009 at 2:38 PM
I used Version 2.1 http://code.msdn.microsoft.com/crmplugin/Release/ProjectReleases.aspx?ReleaseId=90 and with that it is possible to register. I also found this discussion about it http://code.msdn.microsoft.com/crmplugin/Thread/View.aspx?ThreadId=1207 .

Cheers
Coordinator
Apr 3, 2009 at 9:19 PM
Thank you for solving this! I also use 2.1 so I never had this problem. I'll try to figure out whether there is a specific reason why it does not work with 2.2, unless it is a problem related to the plugin registration tool.