Skip to content

Latest commit

 

History

History
93 lines (66 loc) · 4.06 KB

INSTALL.md

File metadata and controls

93 lines (66 loc) · 4.06 KB

INSTALL.md

On a Windows 7 or 8.1 machine (should also work for Windows 10):

  1. If you do not already have Visual Studio, you may download Visual Studio Community Edition for free (2015 is the latest version).

  2. You need the Internet Information Services (IIS) web server enabled on your machine. To turn it on, go to the Control Panel and search for "Turn Windows Features On or Off." Check the following under Internet Information Services:

    • Web Management Tools
      • IIS Management Console
      • IIS Management Scripts and Tools
      • IIS Management Service
    • World Wide Web Services
      • Application Development Features
        • ASP.NET 3.5
        • ASP.NET 4.5
      • Common HTTP Features
        • Static Content
      • Security
        • Windows Authentication

You may need to restart the server after making these changes.

  1. Install Azure SDK 2.6. An easy way to do this is to go into the Visual Studio menu: "Tools" -> "Extensions and Updates" and update first SQL Server (to get LocalDB installed) and then the Azure SDK, which depends on LocalDB.

  2. Clone the WWT Website Git Repository. You can "Clone in Desktop" if you have GitHub for Windows installed.

  3. Run Visual Studio as Administrator (right-click on Visual Studio and select Run As Administrator).

  4. Open the solution file in Visual Studio: File-> Open-> Project/Solution -> /path/to/repo/wwt-website<-master> -> WWTWebSiteOnly.sln

  5. Click OK on any Security Warnings

  6. Click on Build -> Build Solution. It should build with no errors (you may get some warnings...probably OK).

  7. In order to view the newly built website in your browser, you will first have to update some permissions on your machine:

    • Launch the IIS Manager. Make Sure you are in “Features View” (selected near the bottom)
    • On the left, click [Machine Name] -> Sites -> Default Web Site
    • Under IIS section, double-click Authentication
    • Right-Click Windows Authentication. Select Enable. If prompted for Extended Protection, select Accept and click OK.
  8. Get the proper permissions on the content folder:

    • On the left, Right-Click Default Web Site, select Edit Permissions
    • A WWTMVC5 Properties sheet should appear.
    • Select the Security tab. Click the Edit button. Click the Add button.
    • Click the Locations button. Select your machine name at the top of the Locations window. Click OK.
    • Enter IIS_IUSRS as the object name in the Select Users or Groups window.
    • Click Check Names. It should show: [Machine Name]\IIS_IUSRS
    • Click OK. A dialog will show the chosen permissions. Click OK.
    • Then Click OK again.
  9. Launch your web browser. Enter localhost and go. It will probably spend about a minute working, then the WWT website should render.

On Linux, use a Windows virtual machine:

  1. Install VirtualBox.

  2. Get a no-cost .ova file of Windows from the Microsoft Edge team.

  3. Import the .ova file into VirtualBox.

  4. In your new Windows virtual machine, follow the instructions above.

Troubleshooting

If the website builds and loads in the browser, but the styles are incorrect, here are some things you can try:

  1. Install "Web Compiler" for Visual Studio by going to Tools -> Extensions and Updates and searching for "Web Compiler."

    • Once this is installed, right-click on "wwt.less" in the Solution Explorer and choose "Web Compiler" -> "Re-compile file." This may read just "Compile file" if it hasn't been compiled at all yet.
  2. Or, in Solution Explorer, right click on WWTMVC5 and choose "Manage NuGet Packages." Search for Twitter.Bootstrap.Less and click "Upgrade." If prompted, overwrite all files.

Let us know if you have other problems building the site by opening an issue.