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
74 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 27

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

813 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

15 Experts available now in Live!

Get 1:1 Help Now