Deploying ASP. NET MVC3.0 App site program on Windows Server R2

Source: Internet
Author: User

System and Software Environment

Windows Server R2

iis:4.5

. net:4.0

ASP. NET MVC 3.0

(1) Installing IIS

Open Administrative Tools > Server Management, select Roles > Add roles



Tick Web server options



Select a role service other than FTP (optional)



(2) Install Web Deployment

Installation Mode Select Custom


Select all modules (optional)



(3) Installing the. NET Framework 4.0



(4) Registration of ASP. 4.0

Open a command-line window with administrator privileges and run the following command:

64-bit Systems > C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe-i

32-bit Systems > C:\windows\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe–i


(5) Installing ASP. MVC3

WebMatrix.Data.dll System.Web.WebPages.dllSystem.Web.Routing.dllSystem.Web.Razor.dllSystem.Web.Mvc.dllSystem.Web.Helpers.dllSystem.Web.Abstractions.dll
in the Publisher/bin directory, if missing System.Web.Mvc.dll is a sure deployment failure. first make sure that there are above DLLs under/bin;
also need to installAspNetMVC3ToolsUpdateSetup.exe this bag.
here is the picture of the configuration     This is to specify a specific user, primarily to ensure that IIS has access to all the contents of the file, so it must be a user with your program directory access rights;
There is the "logo" here, this is the best choice LocalSystem; This related permission is not very clear to me; it seems to have something to do with database authentication ;
In addition, you should set the network service to the Administrator account of SQL Server. Setup method: Start mssms, security, login name, right click, new login name,as shown in the following:

In the next dialog box, select Search, Advanced, find Now, locate the network service, add users, and in the Server Roles tab, add the sysadmin role for the network service. This resolves the issue of logging in to a SQL Server error.


Hopefully this article will help the friends who deploy the ASP. NET MVC site under IIS7.

Next, deploy the Web application to the server and run the Web site with the following error: HTTP Error 403.14-forbidden WEB server is configured to not list contents of this directory and login on failed for "IIS apppool\asp.net v4.0" solution: navigate to. NET Installation directory C:\Windows\Microsoft.NET\Framework\v4.0.30319, start the cmd console, switch the current directory to the. NET installation directory, execute the asp.net_regiis-i, This error can be resolved by re-registering ASP .

c:/windows/microsoft.net/framework64/v4.0.30319/aspnet_regiis.exe-i

If it appears

to find the appropriate file in your development environment, the path is C:\Program files (x86) \reference Assemblies\microsoft\framework\. netframework\v4.0 is copied to the bin of the project you are publishing.

Deploying ASP. NET MVC3.0 App site program on Windows Server R2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.