?
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
?
141 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 28

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

Tutorial: Introduction to Managing a Linux Server

In this tutorial on systemd, we will explore:
-OS/Distro Adoption
-chkconfig and Other Legacy Commands
-Summary and Key Commands

Question has a verified solution.

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

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
This video teaches users how to migrate an existing Wordpress website to a new domain.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

762 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