Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

IIS Setup

Grzegorz Mrukwa edited this page Jun 28, 2017 · 3 revisions

System features

Open Progams and features (Control Panel > Programs > Programs and Features), click on Turn Windows features on or off.

Make sure that marked in red are selected:

Windows Features

When all are selected, a reboot may be required.

Build project

Open .\src\Spectre.sln in Visual Studio and build it.

Configuration of project API root

Easy version

  1. Navigate to .\scripts directory (in the root of the repository).
  2. Right-click BindPageToIisAndCreateDataDir.ps1 and select Run in PowerShell
  3. Check if green messages confirming that API exists and responds are shown.

Manual version

Internet Information Services (IIS) Manager

  1. Open Internet Information Services (IIS) Manager
  2. Go to Application Pools for your machine.
  3. Add Application Pool:
  • Name = Spectre
  • .NET CLR Version = .NET CLR Version v4.X
  • Managed pipeline mode = Integrated
  1. Go to Sites
  2. If does not exist, add Default Web Site
  3. Go to Default Web Site
  4. Add Application:
  • Alias = spectre_api
  • Physical path = REPOSITORY_ROOT\src\Spectre
  • Application Pool = Spectre
  1. Right-click spectre_api > Edit permissions
  2. Navigate to Security tab
  3. Edit
  4. Add > IIS_IUSRS > OK
  5. Add > IUSR > OK
  6. For both new users select:
  • Read & execute
  • List folder contents
  • Read
  1. OK > OK
  2. Exit

Required test files

  1. Copy REPOSITORY_ROOT\test_files content into C:\spectre_data
  2. Right-click C:\spectre_data
  3. Properties > Security
  4. Add permissions for two users as above

Test if API is available

  1. Navigate this link