-
If you do not already have Visual Studio, you may download Visual Studio Community Edition for free (2015 is the latest version).
-
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
- Application Development Features
- Web Management Tools
You may need to restart the server after making these changes.
-
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.
-
Clone the WWT Website Git Repository. You can "Clone in Desktop" if you have GitHub for Windows installed.
-
Run Visual Studio as Administrator (right-click on Visual Studio and select Run As Administrator).
-
Open the solution file in Visual Studio: File-> Open-> Project/Solution -> /path/to/repo/wwt-website<-master> -> WWTWebSiteOnly.sln
-
Click OK on any Security Warnings
-
Click on Build -> Build Solution. It should build with no errors (you may get some warnings...probably OK).
-
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.
-
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.
-
Launch your web browser. Enter localhost and go. It will probably spend about a minute working, then the WWT website should render.
-
Install VirtualBox.
-
Get a no-cost .ova file of Windows from the Microsoft Edge team.
-
Import the .ova file into VirtualBox.
-
In your new Windows virtual machine, follow the instructions above.
If the website builds and loads in the browser, but the styles are incorrect, here are some things you can try:
-
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.
-
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.