Plugin broken moving from 4.1.1 to 4.2.1
Can anyone think of why my plugin would stop working after upgrading to 4.2.1? I recompiled the dll with the latest versions of the Gemini dlls, dropped it back in the folder and doesn't seem to work. It was working properly before upgrade.
Along the same lines, how can I log some trace messages to the Log within Gemini?
matrix4123
· 1 |
|
Friday, January 27, 2012, 4:26:21 PM |
0
|
Did you check Gemini's error log for errors? Unfortunately, you cannot log (except of exception thrown) to Gemini. |
||||
|
0
|
I am seeing this, but another thread said this wasn't anything to be concerned about... Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at CounterSoft.Gemini.Business.Events.GeminiEventDispatcher.LoadPlugins(String strPath) |
||||
|
0
|
That seems to me like your DLL is missing a referenced dll in the plugins folder. Do you reference any other dlls? |
||||
|
0
|
I'm using Commons and Webservices. Originally I had Webservices Dll in the plugins folder when it was working. I then tried without after upgrading. I will try again with the Webservices Dll. |
||||
|
0
|
Added the commons and webservices back in and don't get that error anymore. Still not functioning as before. I'll try to make my own log to a txt file and see if my methods are even being called. |
||||
|
0
|
You need to just add the webservices dll not commons. |
||||
|
0
|
Do you have to restart the IIS session for the plugin to be reloaded? |
||||
|
0
|
You need to restart the app pool for Gemini. |
||||
|
0
|
So, I have tested this on my local test platform. Then I copy the same exact dlls onto the production machine and I get the exception. Is there any extra logging I can look at to see exactly what it is complaining about? Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at CounterSoft.Gemini.Business.Events.GeminiEventDispatcher.LoadPlugins(String strPath) |
||||
|
0
|
If it works on your test platform but not on production then you must be missing some referenced dlls that might be in the GAC in test but not in production. |
||||
|
0
|
Assuming the plugin mechanism didn't change from 4.1.1 to 4.2... ? I didn't change anything and it stopped working after the upgrade. |
||||
|
0
|
No, nothing changed in 4.0 - 4.2.1. Send us your code to support at countersoft dot com. |
||||
|