Setting up Sample Applications (.Net) with IIS

  1. Copy the folders dotnetsamples and dotnetviewersample from the Samples folder on the installation DVD to C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2016\www.
  2. Create a “bin” folder under dotnetsamples and copy all DLLs from C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2016\www\mapviewernet\bin to C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2016\www\dotnetsamples\bin.
  3. Copy all the DLLs from C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2016\www\mapviewernet\bin to C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2016\www\dotnetviewersample\bin.
  4. Add C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2016\www\mapviewernet\bin to the Path Environment Variable.
  5. Load the dotnetsamples.mgp package the same way you loaded the Sample Data package. (See Instructions for Loading the Sample Data on the Server
  6. Open the Internet Information Services control panel (available from Administrative Tools) and navigate to Default Web Site/mapserver2016.
  7. Configure dotnetsamples and dotnetviewersample as applications. (Right-click the directory and choose Properties. Then, on the Directory tab, click Create in the Application Settings.)
  8. On the ASP.NET tab, make sure that ASP.NET version for those two directories is set to 2.0 or higher.
  9. Close the Internet Information Services control panel.
  10. Open the URL http://servername:port/mapserver2016/dotnetsamples/main.aspx.

This opens the developer’s guide samples and provides links to the Viewer Samples. You can also open the Viewer Samples directly.

Note: servername:port is the name or IP Address of the computer on which the Web Server Extension and sample applications are installed.