简体   繁体   中英

using Graphviz Dlls in asp.net c# application

I am using the Graphviz Dlls in an asp.net application, i am using the method described here to access the Dlls through my c# code:-

http://implicitoperator.com/blog/2010/4/11/graphviz-c-sample.html

http://implicitoperator.com/blog/2009/12/24/rendering-an-in-memory-graphviz-image-with-c.html

Everything works as i expect on my local machine while debugging and i get a pdf of my graph back.

The problem is when the application is deployed to our UAT server the graph isn't generated. No exceptions are thrown and there seem to be no errors at all i just get an empty PDF back instead of a PDF with a graph.

I have checked that the application has the correct permissions to call unmanaged code, i have checked the application can find the graphviz Dlls and i have checked that the dot code going into the method call is the same locally as it is on the server. Everything checks out fine.

i am tearing my hair out with this problem, anyone got any ideas what the problem could be ?

An idea to try: load the main Graphviz Dll in depends.exe http://en.wikipedia.org/wiki/Dependency_Walker .

may be you are a missing dependency.

How are you registering the dll? Double check the web.config on the server perhaps (maybe you missed something there)?

Also like Justin C suggested, make sure there is not a temp folder on the server that the dll is using to stream write/create the PDFs into. You might need to allow write privileges to that folder etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM