Home > Backend Development > C#.Net Tutorial > Detailed steps for publishing a website in .NET

Detailed steps for publishing a website in .NET

高洛峰
Release: 2017-02-10 17:32:34
Original
6422 people have browsed it

This article mainly introduces the detailed steps for publishing a .NET website, including web website publishing, IIS6 installation method, and ASP.NET v4.0 installation method. It has certain reference value and interested friends can refer to it. Let’s take a look

This article is divided into three parts: web website publishing, IIS6 installation method, ASP.NET v4.0 installation method

1. Web website publishing

1. Open the Visual Studio 2013 compilation environment

Detailed steps for publishing a website in .NET

#2. Right-click on the solution to pop up the regenerated solution to see if there are any errors

Detailed steps for publishing a website in .NET

3. If there is no error in the project, right-click the WebUI layer to publish

 Detailed steps for publishing a website in .NET

4. You will see the following interface

Detailed steps for publishing a website in .NET

5. Create a new configuration file in the configuration file

Detailed steps for publishing a website in .NET

7. In the configuration file name dialog box, you can enter the website name, for example :test 

Detailed steps for publishing a website in .NET

8. The connection publishing method should select the file system

Detailed steps for publishing a website in .NET

9. Select the website you want to publish Place the disk, and then click the new folder icon in the upper right corner. Be sure to place the project under the WebSite folder!

Detailed steps for publishing a website in .NET

#10. In the settings, select the Release version and do not select the Debug administrator test version!

Detailed steps for publishing a website in .NET

11. Just publish it in the next step.

12. Then open the Internet Information Services (IIS) Manager

 1).Open cmd and enter IIS to open the Internet Information Services (IIS) Manager

 2).Control Panel-->Administrative Tools-->Internet Information Services (IIS) Manager

13. After opening it, check whether there is ASP.NET 4.0 or above in the application pool, and check whether the status is not enabled.

Detailed steps for publishing a website in .NET

14. Start adding the website

Detailed steps for publishing a website in .NET

15. Fill in the website name and select v4.0 in the application pool Classic

Detailed steps for publishing a website in .NET

16. Select the physical path

Detailed steps for publishing a website in .NET

17. Select the type, IP address, port

Detailed steps for publishing a website in .NET

18. The host name can be empty and then confirmed, so that a test site will appear in the website directory

Detailed steps for publishing a website in .NET

19. Select the test site to switch to the content view, then select the index page and right-click to browse to see if the release is successful

Detailed steps for publishing a website in .NET

20. Sometimes we want to enter the IP address in the URL to access the homepage of the website. We can do this

Detailed steps for publishing a website in .NET

Detailed steps for publishing a website in .NET

Detailed steps for publishing a website in .NET

##21. If you want to enter 192.168.1.108 on the URL to open the homepage of the website, you can do this

(The default web port is 80, and you just changed the port to 8080, so enter 192.168 on the website .1.108 cannot open the website. You can only open the website by entering 192.168.1.108:8080)

Detailed steps for publishing a website in .NET

## 2. IIS6 installation method

Control Panel ==> Programs and Features ==> Turn Windows features on or off ==> Select Internet Information Services ==> Check all subdirectories of Web Management Tools and World Wide Web Services (check all subdirectories The check mark [√] will be displayed on the root directory only after the root directory has been installed. ) ==> OK

3. ASP.NET V4.0 installation method

Find the path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319 ==> Copy its path==> Open cmd ==> Enter the command: cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319 (right-click and paste) ==> Press Enter ==> Then enter: aspnet_regiis.exe -i ==> Press Enter to installDetailed steps for publishing a website in .NET

Detailed steps for publishing a website in .NET

Detailed steps for publishing a website in .NET

## Note: If If there are any omissions or errors in the article, I hope readers will leave a message for easy correction! ~

The above is the entire content of this article. I hope it will be helpful to everyone's learning. I also hope that everyone will support the PHP Chinese website. Detailed steps for publishing a website in .NET

For more articles related to the detailed steps of .NET publishing website, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template