Page 1 of 1

Error when I deploy to the server

Posted: Fri May 07, 2010 8:46 pm
by bryanm
Hi,
I have a web application that works fine, however when I deploy it to my server, it throws the following error, even though the file is there.
I get the following error
Could not load file or assembly 'GdPicture.NET.barcode.1d.writer' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Re: Error when I deploy to the server

Posted: Sat May 08, 2010 10:11 am
by Loïc
Hi,

Did you copy the GdPicture.NET.barcode.1d.writer.dll into the same folder as GdPicture.NET.dll ?

Kind regards,

Loïc

Re: Error when I deploy to the server

Posted: Sat May 08, 2010 11:47 am
by bryanm
Hi Loic,
yes I did, even though I'm not even using it in this particualr project

Re: Error when I deploy to the server

Posted: Sat May 08, 2010 1:01 pm
by Loïc
Hi,

Please give me the exact version of both of these dlls (with windows right-click -> properties).

Kind regards,

Loïc

Re: Error when I deploy to the server

Posted: Sat May 08, 2010 1:13 pm
by bryanm
barcode is 1.0.0.2
and gdpicture is 6.7.0.0

The server is an essential business server 2008 64-bit if that impacts on it, but I did try and compile for x86 and for any

Re: Error when I deploy to the server

Posted: Sat May 08, 2010 1:25 pm
by Loïc
Ok dude !

Well, you can check this:

- Your project is target to x86 processor
- You project, GdPicture.NET.dll & GdPicture.NET.barcode.1d.writer.dll are targeted to the same framework version
- Your project doesn't links GdPicture.NET.barcode.1d.writer.dll
- You are redistributing the same GdPicture.NET.dll version as your application links in your development computer
- You correctly installed the .NET framework version as your project is targeted for


If there is no confidential issue, you can send me your app at esupport (at) gdpicture (dot) com for quick investigation.

You are just running in a conflict version.

Kind regards,

Loïc

Re: Error when I deploy to the server

Posted: Tue Oct 19, 2010 2:41 am
by RonKStahl
Did you find a solution for this problem? I am having the exact same problem with the same version of DLL's. It only happens on 64bit servers/workstaions.

thanks
Ron

Re: Error when I deploy to the server

Posted: Tue Oct 19, 2010 8:10 am
by Loïc
Ron, the solution is on my previous post... There is nothing more to do.

Loïc

Re: Error when I deploy to the server

Posted: Tue Oct 19, 2010 4:34 pm
by RonKStahl
I whish it was that simple. But this does not happen on all 64bit machines. Last night I tested this on our 64bit server and the application runs fine using the same installation file. So, do you have any idea as to why on some machines this does not work?

Thanks
Ron

Re: Error when I deploy to the server

Posted: Tue Oct 19, 2010 4:58 pm
by Loïc
Hi Ron,

No idea. Probably something is missing in your installation project.
GdPicture.NET can be simply deployed in "xcopy" way. So the problem is away but without more information I can't give more help.

Kind regards,

Loïc