Website publishing error "encountering"

Source: Internet
Author: User

Two days ago, I tried to publish a website named "News Publishing System" locally. I encountered a series of errors and had a headache.

I don't know if my netizens are the same as me. They often encounter server errors in the "/" application and want to throw the computer upstairs.

 

But fortunately, I have survived. Here I will share my solutions to prevent netizens from getting crazy about these issues.

 

Let's talk about my machine environment: win7 + iis7 + sqlserver2005 + vs2010

It is also a relatively new environment. I plan to change sqlserver to 2008 in two days, but I have never used it. I plan to try it.

 

If other software is not mentioned, check whether IIS is correctly installed.

In the browser, enter http: // localhost/in the address bar/

If the following picture appears, your iis7 is correct.

 

If you do not know how to install IIS, refer to "IIS" in Baidu encyclopedia.

Let's go back and see the errors on my website.

 

Error 1,

Solution: An error occurred while accessing IIS. Most of the reasons are that our ide does not know IIS, so we need to re-register IIS,

 

In the Command Prompt window, enter

C: \ windows \ Microsoft. NET \ framework \ v4.0.30319 \ aspnet_regiis.exe-u

Uninstall

C: \ windows \ Microsoft. NET \ framework \ v4.0.30319 \ aspnet_regiis.exe-I

Register

Of course, I registered it to. net4.0. You can select it based on the. NET version and change the path.

For example,. net2.0

C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis.exe-I

Error 2,

Solution: In fact, these two errors are an error, that is, they do not have the permission to read data.

See:

If no IP address is assigned, the local machine is automatically bound, that is, http: // localhost: 804/. At this time, an error in the second diagram with the blues is reported.

If the IP address of the local machine is assigned, it will report the above failure to load ...... .

 

Note:If an IP address is used, the page is marked in red. If localhost is used, the blue page is displayed. We will talk about it later.

What is the purpose of the blue-tone error page.

 

The root cause of the above error is: insufficient permissions.

 

1. First, you are the administrator user.

2. You can either release a non-system disk on the website or Configure permissions on the page of adding the website.

Click Connect to enter the administrator username and password.

 

Of course, we recommend that you create a website directory to a non-system disk.

 

Error 3,

Solution: These two errors are mainly caused by incorrect connection pool version.

Now I have created two connection pools, hello1 and hello2.



We can see that one is based on. net2.0 and the other is based on. net4.0.

If your website is based on. net4.0 and your connection pool type is also 4.0

When adding a website, the default value is. net2.0, so you need to manually change it.

You can change it in "select" or in advanced settings after creating a website.


To sum up, the above error is nothing more than whether IIS is correctly registered and has insufficient permissions ,.. Net version. If you do not know any errors during website publishing, try the above steps one by one and then restart the service. If you are not lucky enough to solve the problem, please refer to the error solution provided by msdn below

When you access a website hosted by iis7.0, an error message is displayed: "HTTP Error 500.19-internal server error"

Here, the error code on the blue debugging error page above can be used to retrieve the corresponding error solution.

 

You are welcome to share with me your problems and solutions during website publishing.

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.