Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Setting up MVC 5.2.3.0 site with .Net 4.6 on IIS 7.5 on 2008R2SP1

Posted on 2016-09-03
2
Medium Priority
?
175 Views
Last Modified: 2016-09-04
I am looking for good how to guides on this. Any good suggestions by experience?
0
Comment
Question by:itnifl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Dan McFadden earned 2000 total points
ID: 41783833
The IIS Forum link below is basically a list of other links on how to setup an MVC app.

Link:  https://forums.iis.net/t/1183997.aspx

Dan
0
 
LVL 2

Author Closing Comment

by:itnifl
ID: 41783850
Thank you for that. After a bit of Googling I documented my setup roughly like this:

- Install .Net 3.5.1 Features via Server Manager -> Add features wizard
- Install .Net 4.6:
- Install IIS 7.5: -- Make sure you include the following features in IIS: IIS management console, IIS Management Script and Tools, Management Service, Static content, Directory Browsing, HTTP Errors, HTTP Redirection, ASP, ASP .Net, ISAPI Extensions, ISAPI Filters, .Net Extensibility, Default Document, HTTP Logging, Logging Tools, Basic Authentication
- Install SQL Server Express 2014: -- Make sure you also install the Management Studio. This install will be set up with default configuration choices (next->next->finish), except for configuring mixed authentication mode. This will leave us with the instance ID: SQLEXPRESS.
- Download and install the complete Web Deploy Tool on the server hosting the website.

- Create the database <nameofsolutionhere> in SQL Server Express and create the local SQL User (not windows user) named <nameofsolutionhere> with the password <nameofsolutionhere>. Set this users default database to <nameofsolutionhere> and give the user dbcreator rights on the database <nameofsolutionhere>.
- Run the following command from cmd as administrator: %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
- Start IIS Manager via the Start Menu and select the Application Pool named DefaultAppPool and then click basic settings. Choose Managed Pipeline Mode: Integrated, and .Net Framework version v.4.0.30319. NB! This is very important!
- Browse to the default website, normally C:\inetpub\wwwroot, and delete all the contents of the folder.
Make sure Forms Authentication and Anonymous Authentication  is enabled in IIS Manager under IISServer\Sites\Default Web Site\Authentication
- Download the Web Deploy Package <nameofsolutionhere>.zip from the github site and place it at the server outside the IIS default location. Unzip it.
- Start CMD as administrator, go to to the location of the package with the cd command and execute the following: <nameofsolutionhere>.deploy.cmd /Y
- Open web.config with notepad++ that is now placed under C:\inetpub\wwwroot and modify the connection string named "SQLConnectionString" to the following: Server=.\SQLEXPRESS;Database=<nameofsolutionhere>;User Id=<nameofsolutionhere>;Password=<nameofsolutionhere>;
- Start cmd as administrator and enter the command: iisreset
- Start a web browser and enter the website using http://localhost
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

596 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question