Page 1 of 1

Twain DLL problem

Posted: Sun Jun 03, 2012 12:32 am
by glnoble
I am moving from gdpicture 5 activeX to .net 8. The twain is slightly different so trying to rewrite under the new standards. running into an issue with the twain DLL. when I try even the simplest function I get the following error:

The version of GdPicture.NET.twain.gdtwain.dll is invalid. Please update the
following dll to latest version:
C:\Windows system32\gdpicture.net.twain.gdtwain.dll

Just to be safe I have copied all the redist files to both system32 and the syswow64 directories. I am developing on a Windows 7 64bit machine with the latest updates using Microsoft Access 2010 (32bit version). I am running the latest version of GdPicture .NET.

Why am I getting this error?

Sample code attached to a button which produced the error:

Private Sub Command37_Click()
On Error GoTo Handler_Err

Dim Imaging1 As New GdPictureImaging
MsgBox Imaging1.TwainGetState

Handler_Exit:
Exit Sub

Handler_Err:
MsgBox Err.Description
Resume Handler_Exit
End Sub

Re: Twain DLL problem

Posted: Sun Jun 03, 2012 11:35 am
by Loïc
Hello,

The message is clear, you are getting this error because the redistributed dll version is legacy regarding the GdPicture.NET core you are using.

The best option for you is to download the latest gdpicture.NET version and ensure yourself to redistribute the latest TWAIN library in the same way.

Kind regards,

Loïc

Re: Twain DLL problem

Posted: Sun Jun 03, 2012 6:52 pm
by glnoble
Loic,

that would make sense if the .net version was ever loaded on my machine. It was not we had the old activex version gdpicture 5. the only DLL's are from the newest version we just downloaded when we purchased the .net version a couple weeks ago. there simply was never an older version of .net for it to be confused with.

what else can we try?

Greg

Re: Twain DLL problem

Posted: Sun Jun 03, 2012 7:03 pm
by Loïc
Hello,
what else can we try?
There is nothing else to try. You have probably done something wrong that you forgot.

So please try what I've suggested.

- Download the latest version: https://www.gdpicture.com/download/downl ... urenet.php
- Install on your dev computer.
- Redeploy and check you are using the shipped dll of the installed version.

Re: Twain DLL problem

Posted: Mon Jun 04, 2012 6:08 pm
by glnoble
Loic,

My apologies, I did the steps suggested and it works perfectly.

as always thanks for the wonderful support and quick response!
Greg

Re: Twain DLL problem

Posted: Mon Jun 04, 2012 6:21 pm
by Loïc
You are welcome Greg :)

Thank you for the return.