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
47 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
2 Comments
 
LVL 26

Accepted Solution

by:
Dan McFadden earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now