ASP. NET System website released

Source: Internet
Author: User

After a system website project is completed, we need to publish the website to the server and provide the system with a domain name for users to access and use.

After the system was released that day, it was like writing out the entire release process of the system, which was delayed due to busy work. In this log, I will record the process of releasing a website a few days ago for you to share.

Use VS The built-in website publishing tool, first of all, in Vs2008 ( Visual Studio 2005 Yes, I use Vs2008 , ), Open the project that has been completed,

1. Right-click the project Web Layer, we can see that in the right-click menu Publish ( B ) ... Click it:

2.Click...The following dialog box is displayed.

Select LocalIISWhy?OK, Very simple, localIISAfter the release, the configuration of the system is almost complete. After selecting the released directory, click release. We noticed thatVSBelow are:

Indicates that the website is being released. After the release is complete,VSIn the lower left corner of the page, a message is displayed, indicating that the release is successful.

3.OpenIISIt's not good. I found that all the content of the just-released system isDefault web sitesIn the directory, it looks pretty bad, right? When you browse and publish "successful", you will find an error. Is this the following error?

Yes, that's the error. Haha, tell you, the publishing system you think is too simple.

4.In fact, before releasing a website, we must firstIISCreate a new virtual directory and direct it to your specified physical directory. The contents of your published system will be in this directory. Is it too illusory to say this? Please give me some tips.

(1)Right-clickDefault web sites, Select Add virtual directory, give this virtual directory an alias, and point it to an actual physical path

Click OK.OK.

(2)Don't worry, there is another key to complete above, that is, to convert the virtual directory you just added to the applicationProgramRight-click the added virtual directory and select convert to application.

5.Now we can go back to the first step of release and select the newly added virtual directory.

6.After the release, we browsed the page again and found that an error was reported. Haha, isn't it so anxious? Well, it's not that easy to simply publish a website. Is the error as follows?

In fact, this is a problem with the program pool. It is very simple. We need to make some advanced settings for this virtual directory and right-click the virtual directory.Pubhealthservice->Manage applications->Advanced Settings, we found that the default value of the virtual directory application isDefaultapppoolThe problem lies here. Click the ellipsis next to it,

SelectClassic. Net apppoolAnd click OK.

Haha, are you able to browse normally? The local release has solved the problem. I'm glad to hear that!~~.

7.After the local release, we need to release the released system to the server. This is relatively simple. First, we need to upload the content in the physical directory of the released website to the server, and inIISIn step 4, create a virtual directory. Note that the physical path of this virtual directory points to the directory where the file you uploaded is located (Oh, don't forget, but also switch to an application, never be careless!). The publishing on the server should be done in this way. However, some people may still encounter problems, and the system can run, but they cannot connect to the database and check it again.IISAfter the configuration related to the database, there is no error at all. Yes, there is no problem with your configuration. Should you consider it ?? Yes, the server is not installed. Net3.5, You know, Not Installed. Net3.5Many class libraries do not exist. Of course, the system cannot run and the problem is solved after being installed.

8.Of course, when talking about Step 7 above, you may feel a little redundant. Yes, we can select a remote site when releasing the system, so that part of Step 7 is missing.

 

Well, it's not too early. Let's write it here. If you have any questions, please leave a message to discuss them. If you have any questions, I will try my best to solve them!~~

 

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.