Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in use of GraphViz command line executables #17

Open
ghbhat opened this issue Apr 1, 2017 · 1 comment
Open

Error in use of GraphViz command line executables #17

ghbhat opened this issue Apr 1, 2017 · 1 comment

Comments

@ghbhat
Copy link

ghbhat commented Apr 1, 2017

Hi Jamie,

Thanks for this very useful wrapper! It works well when I provide a location like "C:\GraphViz\bin" in the web.config file. However, when I include the GraphViz executables in my application's bin itself, and try to provide a relative path (or no path) in the web.config file, I get the error 'The system cannot find the file specified'. Your documentation indicates that there is some way to do this (call the executables from the app's bin without providing an absolute path to them), but I couldn't figure out how... Please guide me?

@snap608
Copy link

snap608 commented May 10, 2018

I do this when running under Asp.Net MVC:

var getStartProcessQuery = new GetStartProcessQuery();
var getProcessStartInfoQuery = new GetProcessStartInfoQuery();
var registerLayoutPluginCommand = new RegisterLayoutPluginCommand(getProcessStartInfoQuery, getStartProcessQuery);
var wrapper = new GraphGeneration(getStartProcessQuery, getProcessStartInfoQuery, registerLayoutPluginCommand);

wrapper.GraphvizPath = Server.MapPath("~/Some/Path/Graphviz/bin");

byte[] output = wrapper.GenerateGraph("digraph{a -> b; b -> c; c -> a;}", Enums.GraphReturnType.Png);

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants