Page 1 of 1

ok on windows 7 x64, error on w2008 x64

Posted: Fri May 04, 2012 5:44 pm
by gennarokoala
I'm doing some test with gflax version 2.82 because version 3.40 give me error when I try to register the dll

I'm implementing on a asp.net site (in vb.net)
Windows 7 x64 (with IIS7) gflax 2.82 and ghostscript 9.0.5 is ok:
Register the dll, add the reference to the web site, run the test page where I create a jpeg from first page of a pdf with this code

Code: Select all

        Dim g As New GflAx.GflAxClass()
        g.EpsDpi = 72
        g.Page = 1
        g.LoadBitmap(file)
        g.Resize(90, 120)
        g.SaveFormat = GflAx.AX_SaveFormats.AX_JPEG
        g.SaveJPEGQuality = 100
        g.SaveBitmap(output_file)
All works perfectly

On the production server I installed the same version of Ghostscript and registered the same version of gflax (2.82), but when I run the test page I get the following error:

Unknown format
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Unknown format


if someone could help me I would be very happy

PS: Sorry for my poor english

Re: ok on windows 7 x64, error on w2008 x64

Posted: Mon May 07, 2012 8:57 am
by xnview
Problem with PDF was in 2.82
You can't register 3.40?

Re: ok on windows 7 x64, error on w2008 x64

Posted: Tue May 08, 2012 5:02 pm
by gennarokoala
when I try to register the dll is 3.40 i get error (i translate error from italian to english):

not load the module "Test.dll"
.....
.....
Can not find the specified module

I get error when try to register 3.40 on windows 7 and windows 2008
Version 2.82 on windows 7 works properly, "InteropServices.COMException: Unknown format" is only on Windows 2008

Re: ok on windows 7 x64, error on w2008 x64

Posted: Wed May 09, 2012 7:56 am
by xnview
Do you have installed Visual2008 CRT dll?

Re: ok on windows 7 x64, error on w2008 x64

Posted: Wed May 09, 2012 9:35 am
by gennarokoala
In control panel i see:

Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161
Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.6161

Is this ?

I see also:

Microsoft Visual C++ 2005 Redistributable
Microsoft Visual C++ 2010 x86 Runtime - 10.0.40219
Microsoft Visual C++ 2010 x64 Runtime - 10.0.40219

Re: ok on windows 7 x64, error on w2008 x64

Posted: Wed May 09, 2012 10:10 am
by xnview
Could you send me your email by PM