Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Web Service and Event Listener API

api

Hi,

We developped a custom plug-in to listen to the Create Issue event and write information to another database.

We would also like to update a custom field in the issue just created. We tried to do that with the web services. Our web services code work just fine when executed from a test program. However, it doesn't work if it is executed through the plug-in.

We get the following error in the Gemini system log

at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at CounterSoft.Gemini.Business.Events.GeminiEventDispatcher.LoadPlugins(String strPath)
Our questions are:
- is it possible to call the web services from the Event Listerner API.
- if not what would be the best way to achieve our goal?

Thanks

ogaumond
· 1
ogaumond
Replies (3)
helpful
0
not helpful

Yes, this should be possible.

The exception indicates that we can not intantiate your plugin. It might be becasue of missing DLLs.

Can you please put all Gemini related dlls in the plugins directory?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

HI,

After further investigation it seems that it is a version problem. Our installed Gemini instance has version 3.1.2.2257 of CounterSoft.Gemini.Commons.dll.

However, the CounterSoft.Gemini.Services.dll available in the SDK on your website has version 3.1.2.2254 and it tries to load the 3.1.2.2254 version of the common library.

I think that if we can get the 3.1.2.2257 version of the Services dll, it should work.

Error generated: System.IO.FileLoadException: Could not load file or assembly 'CounterSoft.Gemini.Commons, Version=3.1.2.2254, Culture=neutral, PublicKeyToken=0e17ff0349390ca9' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'CounterSoft.Gemini.Commons, Version=3.1.2.2254, Culture=neutral, PublicKeyToken=0e17ff0349390ca9'





ogaumond
· 1
ogaumond
helpful
0
not helpful

Did you try to put the commons that is shipped with the services download in the plugin dir?

Attached is the 2257 services dll.


Saar Cohen
· 5000
Saar Cohen