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.




API Newtonsoft.Json dll mismatch

api

Afternoon,

I am trying to use the Gemini.WebServices dll to push Unhandled Exceptions to our gemini webserver but run into the problem of us using different, higher version Newtonsoft.Json.dll ( 4.0 vs your 3.5 ) and that produces the following error for me:

System.InvalidOperationException: There was an error reflecting type 'CounterSoft.Gemini.Commons.Entity.IssueEN'. ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3aeec8c590ff36f5' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)

<-- snip -->

at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType) at CounterSoft.Gemini.WebServices.BaseService.GetResponse[T](String url, Object o, RequestType r) at CounterSoft.Gemini.WebServices.IssuesService.CreateIssue(IssueEN issue)

Any assistance on that ?

S.R.

S.Reisinger
· 1
S.Reisinger
Replies (5)
helpful
0
not helpful

You will need to use our version of JSON.net.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

That is kinda impossible :)

Newtonsoft.Json.dll is pretty cemented into the BI of our application/framework. The feature gap between 3.5 and 4.0 R8 ... can't go back.

Is there a way to compile the CounterSoft.Gemini.WebServices dll with a more recent/same version ?


S.Reisinger
· 1
S.Reisinger
helpful
0
not helpful

See if this helps, redirect the old to new version.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I'm having the exact same problem. Binding redirection doesn't work because Gemini's dll has a different publickeytoken than the dll distributed by http://json.codeplex.com/.


Joel
· 1
Joel
helpful
0
not helpful

We have fixed this issue with the release of 5.0. Please upgrade.


Mark Wing
· 9108
Mark Wing