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.