Create a new web site project

Creata a Visual Studio solution and web site project

  • Start Visual Studio 2012 (or later)

  • Select "File" - "New Project"

  • Select "Other Project Types" - "Visual Studio Solutions" - "Blank Solution"

  • Enter a name and location for the solution

  • Right click the solution and select "Add" – "New project"

  • Select "Dynamix 6 - Web site" for Visual Basic or C# (included in Dynamix Templates for Visual Studio)

  • Enter a name for your project and select a location (make sure that IIS has read access to this location).

  • Click OK

Create a website

  • Create a web site with IIS and select the folder for your Visual Studio project created earlier

  • Edit the binding to use a custom port number or a specific host name

  • Make sure that the application pool runs .NET 4.0

Install Dynamix 6

  • Start Dynamix Manager

  • Find your new web site in the Sites list and double click on it

  • Edit the Database settings and choose a database name (it will be created later if it doesn't already exists)

  • Click "Add module", select Dynamix 6 and click Ok. (You may have to close the solution in Visual Studio during the installation.)

Add Visual Studio references

  • Right click references in the solution tree (C#) or use Project properties - References (VB) and select "Add reference…"

  • Choose "Browse"

  • Find the folder named DynamixBin in the web site folder

  • Select Dynamix.dll and click Add.

  • Change Copy Local to false

Edit Web server settings

  • Edit project properties and open the tab named "Web":

  • Set the project to use Local IIS Web server

  • Enter the binding url you chose earlier (http://localhost:xxxx or a custom host name)

Add Setup project (optional)

  • Right click the solution and select "Add" – "New Project…"

  • Select "Windows Installer XML" – "Dynamix Module WiX Setup Project"

  • Enter name: Setup

  • Click OK

  • Add a reference to the web site project

  • Edit Config.wxi and change ProductName and enter a Manufacturer

Compile and test

  • Compile the solution

  • Start a browser and enter the web site url followed by "/dx" (http://localhost:xxxx/dx)

  • Log in with admin/admin

Last updated 2016-01-14