mxGraph .NET

Installation

The following assumes that Microsoft Visual Web Developer 2008 (Express Edition) is used for development. To start development, open the solution file mxgraph-dotnet.sln in Visual Web Developer by choosing File, Open File.

To run the ASP.NET examples in IIS, a virtual directory must be created that maps /mxgraph to the top-level directory of this distribution.

Note that web.config defines a text/plain MIME type for the .properties extension. This extension should always be registered for use with mxGraph resource files.

Examples

Clients

The examples project demonstrates various aspects of the API, such as creating images, using input/output or placing a graph image in a form. Go to Debug, Start without Debugging (Ctrl-F5) to run the examples in this project.

Servers

The aspnet project demonstrates various scenarios using mxGraph, ASP.NET and IIS. Go to Build, Publish to deploy these examples and point your browser to http://localhost/ for all examples in this project. (You may have to use the application name you specified in the Deploy dialog in the URL.)

Note that the Server examples require a virtual directory to be created in IIS. The directory should map /mxgraph to the top-level directory of the distribution and needs to define a mime type of text/plain for .properties files.

In order to publish the example to IIS, you must run Visual Studio in the context of an administrator account.

This example requires a managed runtime version of 4.0 in Visual Web Developer 2010. See here on how to change the managed runtime version in IIS.


© 2006-2010 by JGraph Ltd.