ThinkGeo.com    |     Documentation    |     Premium Support

Npgsql Version

Is there any plan to release PostgreExtenstion.dll compiled against the latest (2.06) version of npgsql.dll?  I'm using some of the features that are only in 2.0+, but the PostgreExtension.dll appears to be using version 1.98.2.  


 


Thanks,


Chris



Chris, 
  
   Is the 2.x version of npgsql.dll not compatible with version 1.98.2?  If it is compatible you can just drop in the new dll over the 1.98.2 version of it. 
  
 David

I've tried that an no, it's not compatible.  As far as I know, 2.0 does everything that 1.0 did, but they added enough that the manifests don't match and PostgreExtension.dll refuses to load.



Chris,


I have added this item to working track system and hopefully it can be added soon (We need to make sure the new DLL will not affect the old version:) ). If you want, you can post back this post to keep it alive.
 
Thanks.
 
Yale

Chris, 
  
   We are looking at this issue now.  I noticed that there is an extra dependency now called Mono.Security.dll.  If you just replace the old npgsql.dll and also include the Mono.Security.dll with the other dll will that work?  We are going to test here but the guy doing the test is out until tomorrow and I don’t have a good test environment setup. 
  
 David

Yes, that's correct.


 


Chris



Chris, 
  
   I just want to verify, you saying correct is that it is now working with the newer npgsql.dll.  This means that you are not depending on us to quickly integrate the new version in our build.  You can move forward with your application using the newer version of the assembly. 
  
   I just want to be very clear so I don’t misunderstand you and just move on thinking this is closed.  We will in the near future integrate the newer version of the dll in but if this works then it is not a showstopper type issue and we can schedule it accordingly. 
  
 David

Sorry, when I said "that's correct" I thought you were implying a rebuild of PostgreExtension.dll after dropping in the new version.


So, NO, you can't just drop in Npgsql.dll & Mono.Security.dll and have it work without a rebuild of PostgreExtension.dll.  PostgreExtension.dll will not load.


I am able to work around it for now.


 


Chris



Chris, 
  
   I understand, how are you working around it now?  Can you include the exception messages you get with any inner exceptions as well. 
  
 David

The exception is:


Could not load file or assembly 'Npgsql, Version=1.98.2.0, Culture=neutral, PublicKeyToken=0828af5241fb4207' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


There is no inner exception.


Stack Trace:


   at ThinkGeo.MapSuite.Core.PostgreSqlFeatureSource.OpenCore()

   at ThinkGeo.MapSuite.Core.FeatureSource.Open()

   at ThinkGeo.MapSuite.Core.FeatureLayer.OpenCore()

   at ThinkGeo.MapSuite.Core.Layer.Open()


 


I'm working around it by not using any of the 2.0 features (array support, for example).



Chris, 
  
 We have full tests on it and the results are exactly as you said. We cannot just replace the old version with new npgsql.dll (as well as Mono.Security.dll); instead, we have to compile the PostgreExtension.dll against it. 
  
 The only thing we are worried currently is that in the new version dll, we have to attach the Mono.Security.dll with it. We will see when we will update it. 
  
 Thanks. 
  
 Yale 


Yale, 
  
   I don’t think the new Mono.Security.dll is a big deal.  The Postgre stuff is an extension anyway.  i suggest we re-compile the extension against the new version.  Send that to the poster and let them see if it meets their needs.  If everything goes smoothly then we update the official extension that will go out with out builds. 
  
 David

Chris,


Attachment is the updated compiled postgreExtension.dll. Let us know if any problems.


Thanks.


Yale

 



1295-postgre2.x.zip (237 KB)

So far, it works with no problems.


 


Thanks!


Chris



Chris, 
  
 Thanks for letting us know your status. 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale 


Hi, 
  
 I have the same problem with time being. Could you please be kind enough to send me the postgreExtension.dll compiled with npgsql.dll version 2.0.8 and 2.0.11. 
  
 On the other hand I would like to know the reason (Only if you like to disclose ;) ) why this made version depended. 
  
 Thanks and Regards 
 Amila

Amila, 
  
 Thanks for your post and questions. 
  
 Now, the published version of Npgsql.dll is 2.0.6, so you want the extensions compiled with updated version 2.0.8 and 2.0.11?  
  
 I will try to get them built and sent you updated extension as soon as possible. 
  
 Thanks. 
  
 Yale 
  


Hi Yale,


Thank you very much for your support. Currently I'm not involving with that development. I will let u know if I need it again.


Thanks


Amila



Amila, 
  
 Thanks for letting me know your status. Please feel free to let me know when you need it, I am always being happy to provide any help I can do. 
  
 Any more questions or concerns please do not hesitate to let me know. 
  
 Thanks. 
  
 Yale 


Yale, 
  
 Sure I will let you know. Thank you…