Installation Instructions

Dec 12, 2013 at 5:27 PM
So I spent quite a bit of time hacking at my computer to get this installed. I have 0 experience with ASP .NET, IIS, etc, so I was hoping it would be easy. For future reference or if others want to install and use this app. Here is what I remember doing on my Windows 8 PC. Forgive me if these aren't exactly correct, since I tried a lot of things and had to backtrack a lot:

1) Installed IIS (Settings -> Control Panel -> Programs -> Turn Windows features on or off) Important: Check the ASP .NET 4.5 selection under Internet Information Services -> World Wide Web Services -> Application Development Features -> ASP .NET 4.5. I tried 3.5 as well, but had some issues with it installing that I never figured out.

2) Create site in IIS (Settings -> Control Panel -> Administrative Tools -> Internet Information Services (IIS) Manager)

2a) Expand the computer under Connections, click on Application Pools.

2b) On the right under Actions, select Add Application Pool... and name it whatever you want. .NET Framework version should be 4.0.x. Click OK

2c) Click on the Application Pool you just created in the list. On the right under the actions menu select Advanced Settings...

2d) In the Advanced Settings window, change Enable 32-Bit Applications to True. Click OK.

2e) In the connections list on the left, right click on Sites and select Add Website...

2f) Site name can be whatever you want, in the physical path select the folder where you have unzipped the GameOn-1.0.1-Web-Package.zip file. This should be the "Package" directory that you are pointing to. Mine I put in C:\Package

2g) The site should start automatically (it might give you a warning about sharing the port with the default website, so you can delete that default website or right click on it and select Manage Website -> Stop. Make sure your site is running by selecting Manage Website -> Start

3) Installed Entity Framework from http://msdn.microsoft.com/en-us/data/ee712906. I downloaded the package manager console command line utility (http://docs.nuget.org/docs/start-here/installing-nuget), opened a command line as administrator (Start -> type cmd -> right click on Command Prompt -> Run as Administrator) , cd'd to the directory where I downloaded the command line utility and ran "nuget install entityframework"

4) Install MS SQL Server Compact 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=17876). Use the 64 bit installer since you are on a 64 bit os.

That should be it. Type in localhost and cross your fingers. I found the test users annoying, so I deleted them from the SQL database file in my (C:\Package\App_Data\GameOn.sdf file using MS WebMatrix 3 (http://www.microsoft.com/web/webmatrix/). I opened the folder above in the app, selected the sdf file, and then deleted all the rows of the test users. This was nice, since I was missing the SQL Server CE 4.0 SP1 CTP1, and it found it, downloaded it, and installed it for me. Ah, if only all applications were so easy. Would be nice to have an easy way to delete users without having to manually edit the database, but it's fine for now.

BTW, thanks for writing this app, it's actually really neat and easy to use, I just hadn't installed an app like this before, so I thought I would save someone the hair tearing out frustration that I had getting it up and running.

Note: I had some errors that I googled about and it had to do with with some settings in my applicationHost file. If you google the same error (sorry, I didn't write down the code), you may have to change some of the "overrideModeDefault" keys to "Allow" in the "C:\Windows\System32\inetsrv\config\applicationHost.config" file. I changed the ones for sites, applicationpools and globalmodules to Allow. Though now when I look at the diffs, I think that was overwritten when I tried to create the site for the 30th time.