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
63 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

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

Suggested Solutions

Title # Comments Views Activity
How to get the web content with different encodings 2 27
Reinstall Putty Windows 7 5 46
Firebug on Firefox 50 2 68
Resolve Dependency Issues 4 45
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

910 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