Page 1 of 1

Missing method for GDPictureimaging dot net

Posted: Wed Mar 27, 2019 11:46 pm
by Allanxxx
Hi, I successfully tested a Powershell script to modify a TIF image in one windows Machine but when I try it on another I get a message saying:

[GdPitcure14.GdPictureImaging] does not contain a method named 'new'

Here is the code:
---------------------------------------------------------------------------------------------------
add-type -Path "C:\users\allan martin\desktop\GdPicture.NET.14.dll"
$GB = [GdPicture14.GdPictureImaging]::new()
---------------------------------------------------------------------------------------------------

This works on one machine and it auto fills after the '::' to give me three options (Equals, new, ReferenceEquals)
however on the other machine it only auto fills after the '::" with 2 options (Equals, ReferenceEquals).
I added 2 screenshots attached.
I checked both dot net versions in the windows registry and they both say: v4.0.30319

Sorry but not experienced with dot net.

Re: Missing method for GDPictureimaging dot net

Posted: Thu Mar 28, 2019 3:58 am
by Allanxxx
Problem Resolved.
The issue is the distribution of GDPicture DLL files.

I thought all I need to do was copy GdPicture.Net.14.dll over to the other machine but I need to copy GdPicture.NET.14.filters.64.dll and GdPicture.NET.14.image.gdimgplug.dll as well.

This is clearly mentioned in the redistribution documentation as stated in:

https://www.gdpicture.com/guides/gdpicture/Re ... e.NET.html

So, in summary; copy the three files over and you're good to go.

Re: Missing method for GDPictureimaging dot net

Posted: Thu Mar 28, 2019 11:08 am
by Gabriela
Hi,

I'm happy the issue is resolved. We always recommend reading the documentation at first.
Let us know if you find anything we can improve in this area. Thank you.