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.
Missing method for GDPictureimaging dot net
Re: Missing method for GDPictureimaging dot net
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.
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
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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests