I keep getting the error:

Warning: Virtual Directory /mxgraph not found! A virtual directory (/mxgraph) that points to the top-level directory of the mxGraph distribution is required in IIS for these examples to work. This virtual directory must be manually created using the IIS Manager.

I've created that virtual directory, converted to an application, added the directory as a web site to my solution, etc. and nothing is working.

Visual Studio is using the ASP .NET Development Server to host the application - could that be it?

asked 22 May '11, 03:25

mdredmond's gravatar image

mdredmond
11113
accept rate: 0%

edited 24 Jun '14, 11:28

David's gravatar image

David
4.9k21831


Okay, I figured it out. You might want to update your instructions for those running later versions of Microsoft Visual Studio.

The references to the mxgraph virtual directory are relative, and thus assume the mxgraph virtual directory is running on the same web server as the .net application. Later versions of Visual Studio use the ASP.NET Development Web Server instead of IIS to host the application when it's being run in the development environment - it is essentially a second web server, although still on localhost. So the application is looking for mxgraph at http://localhost:52556/mxgraph (for example) but the virtual directory I created in IIS is mapped to port 80.

Updating the various references to ('/mxgraph/...') such that they are absolute paths ('http://localhost:80/mxgraph/...') fixes the issue.

link

answered 27 May '11, 12:53

mdredmond2's gravatar image

mdredmond2
112
accept rate: 0%

edited 24 Jun '14, 11:29

David's gravatar image

David
4.9k21831

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×228
×2
×1

Asked: 22 May '11, 03:25

Seen: 10,404 times

Last updated: 24 Jun '14, 11:29