Documentation Center

Setting up a new (ASP.NET MVC) Web application

If you want to do customize your Web application, SDL Digital Experience Accelerator provides an example project which you can use as a start point to create your own MVC application.

Procedure

  1. Install the Development Prerequisites.
  2. Install DXA and get the Example Site published and up and running.
  3. Access your SDL Digital Experience Accelerator installation media.
  4. Navigate to the /src folder.
  5. Run the Web application:
    1. Copy the contents of the /src folder to your development machine.
    2. Open the DxaWebApp.sln Visual Studio Solution file (a basic solution containing a single ASP.NET MVC 5 project and the necessary ASP.NET elements) and compile the solution.
    3. For SDL Tridion 2013 SP1, copy the SDL Tridion DLLs, JARs, and configuration files from your Presentation Server where you have installed your Web application to:
      • <siteroot>/bin/xmogrt.dll
      • <siteroot>/bin/config/*
      • <siteroot>/bin/lib/*
  6. To run the site locally, change the following configuration files in your local Web application:
    FileAction
    Site/Log.config(Web 8) Update the log4net/appender/file elements to have an appropriate value with a valid log file path.
    Site/bin/config/logback.xml(SDL Tridion 2013 SP1) Update the configuration/property log.folder element to have a valid log file folder (note there should not be a trailing slash on this path).
    Site/bin/config/cd_dynamic_conf.xml(SDL Tridion 2013 SP1) Update the URLMappings/StaticMappings/Publications/Publication element, setting Domain to localhost and Port to 59860.
    Site/bin/config/cd_link_conf.xml(SDL Tridion 2013 SP1) Update the Publications/Publication/Host element, setting Domain to localhost and Port to 59860.
    Site/bin/config/cd_licences.xml(SDL Tridion 2013 SP1) Put your cd_licences.xml file in the Site/bin/config folder.

Results

Run the project in Visual Studio. If you start the debugger, the application will start and you should be able to see the home page of the example Web site.