ASP. NET mvc3 series tutorials-Deploy your web application to IIS 6.0

Source: Internet
Author: User
ArticleDirectory
    • I: Preparations for ASP. NET mvc3 deployment
    • II: deploy ASP. NET mvc3 applications to IIS 6.0
I: Preparations for ASP. NET mvc3 deployment

1. Confirm the operating system environment of the deployed Server

First, confirm the operating system version of the server.
You can enter systeminfo in the system command line tool to obtain information about the operating system, for example

Then confirm the IIS version information-> open the IIS management tool.

Then confirm the. NET Framework version.
You can run the following command in the system command line tool:
CD/d % WinDir % \ Microsoft. NET \ framework
DIR/o
 

2. Select a deployment scheme

Currently, the deployment scheme is classified into three solutions for individuals.
A: TapeSource codeFile deployment scheme (only applicable to web site)
B: No sourceCodeFile deployment scheme (applicable to web site/Web Application)
C: Deployment Scheme without source code files and pre-compiled by ASP. NET in advance (applicable to web site/Web Application)

3. Understand the temporary ASP. NET Files directory

I don't know how many readers here know this directory, so I 'd like to mention it here. The length will not be long, even if you already know this directory, you can take a look at the memories to consolidate the foundation!
Its location is c: \ windows \ Microsoft. NET \ framework \ v4.0.30319 \ temporary ASP. NET files used to store pages compiled by the ASP. NET EngineProgramSet file. (Note: v4.0.30319 is the. NET version number. Please make adjustments based on your actual situation !)

Code is a common Page code, which is then transferred to the Assembly file after being processed by the ASP. NET engine.

4. Customize the temporary ASP. NET Files directory location

It's easy. You just need to modify the Web. config configuration.

 <  System. Web  > <  Compilation  Debug  = " True " Targetframework  = "4.0 " Tempdirectory  = " E: \ XXX \ " > <  Assemblies  > <  Add  Assembly  = " System. Web. Export actions, version = 4.0.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " /> <  Add  Assembly  = " System. Web. helpers, version = 1.0.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " /> <  Add  Assembly  = " System. Web. Routing, version = 4.0.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " /> <  Add  Assembly  = " System. Web. MVC, version = 3.0.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " /> < Add  Assembly  = " System. Web. webpages, version = 1.0.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " /> </  Assemblies  > </  Compilation  > <! --  ....  --> </  System. Web  > 

II: deploy ASP. NET mvc3 applications to IIS 6.0

1. IIS 6.0 settings

In fact, it is very simple and does not need to set the MVC ing processing program with the MVC suffix.
Make sure IIS 6.0 can process ASP. NET 4.0

Set ASP. NET 4.0 for the specific ASP. NET version of the site.

Then set IIS to directly go through ASP. NET ISAPI

Next, set the app extension shot.

Last

2. In Server Load balancer, remember to set the same machinekey for each Web server. Otherwise, the view status will not work properly.

After this article, I wish you a happy Mid-Autumn Festival.
Pre-compiled tools, pre-compiled and merged tools

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.