Using 32 bit C library in published .Net project on Windows Server 2012

1

I am using graphviz as library in my MVC project. To be more specific I am doing dll import 32 bit C library as gvc.dll and cgraph.dll like here.

As I debug my project locally it works fine. However, after web deploying it to my Windows Server 2012 (that is a 64bit OS) it fails to load those dlls. I configured a remote debugger to see that is the case. After if tries to get a Context (gvContext()) it crushed with exeption: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B). My IIS is of 6.2 version.

I need to note that generating images from graphviz using cmd on my windows server works just fine. So I assume that Path variables are correct.

I have found different solutions that I have tried:

Nothing worked. I cannot even check if the error has changed as remote debugger doesn't work after I enabled 32bit application.

Any ideas what is wrong?

c#
dll
graphviz
windows-server-2012
asked on Stack Overflow Jan 8, 2017 by kuleczka

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0