How does Asp.net publish a website on IIS? asp. netiis

Source: Internet
Author: User
Tags ftp site

How does Asp.net publish a website on IIS? asp. netiis

1. First, publish the website. When publishing the website, there are four target addresses:

File System: refers to the files published to the hard disk. Local IIS: Is the file FTP site published to the root directory of IIS. It is a remote site uploaded to the specified server through ftp: is the file that can be published to the remote server.
2. after the release is complete, create a Web site in the directory and configure response parameters, such as binding ip addresses and adding default documents, the most important thing is that the version of the application pool is the same as that of the published website,
 
In advanced settings, set the application pool as follows:
 
3. modify the permissions of the corresponding file:

FAQ: there is no problem in the local development environment, but when published to the server, the output file "c: \ Windows \ Microsoft" cannot be written. NET \ Framework64 \ v4.0.30319 \ Temporary ASP. NET Files \ root \ export f9ae8 \ cc0e1169 \ App_global.asax.haz99mum.dll "--" Access denied. "Error

Solution:

1. common solution: the reason is that the Temp directory under the system directory has no corresponding permissions. The specific operation is as follows: C: \ Windows \ temp --> properties --> Security --> edit --> Add the read and write permissions of the network service user.

2. Open the server system drive C, open the window, right-click the temp attribute Security edit, and add IIS_IUSRS user control permissions to add modification and write permissions. This is the solution for Windows Server 2008 R2 Standard Edition SP1 64-bit Chinese version.

 

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.