Diagnosys: In the background, ngraphviz generates a temporary dot file for each graph that gets rendered and shreds it afterwards. If you are running Ngraphviz from a folder that does not have write support, you get something like the exception below.
Workaround: Do not run reflector from a share!
Access to the path "\\xxxxxxxx\a26d8897-1b11-4f40-8d50-301cc6503ba2.dot" is denied.System.UnauthorizedAccessException at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path) at NGraphviz.Helpers.Dot.Run(GraphvizImageType imageType, String dotCode, String outputFileName) at QuickGraph.Algorithms.Graphviz.GraphvizAlgorithm.Write(String outputFileName) at Reflector.Graph.Graphs.InstructionGraphRenderer.Render(String fileName) at Reflector.Graph.IlGraphControl.Translate() at Reflector.Framework.InternetExplorerControl.OnParentChanged(EventArgs e) at System.Windows.Forms.Control.AssignParent(Control value) at System.Windows.Forms.ControlCollection.Add(Control value) at _134._1(IWindow ) at _121._1(String ) at _4.set_Visible(Boolean value) at Reflector.Framework.PackageBase.commandBar_Click(Object sender, EventArgs args) at _78.OnClick(EventArgs e) at _78.PerformClick() at _1.OnClick(EventArgs e) at System.Windows.Forms.MenuItemData.Execute() at System.Windows.Forms.Command.Invoke() at System.Windows.Forms.Control.WmCommand(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.TreeView .WndProc(Message& m) at _2.WndProc(Message& message) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Page rendered at Thursday, May 23, 2013 2:32:19 PM (Pacific Daylight Time, UTC-07:00)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.