The newly created Web application in the lab environment returns a 404 error in the browser

Source: Internet
Author: User

Just turn the note to some of the new SharePoint time to solve some of the 2 primary problems, it is a struggle should not be recorded in this blog? Because worry about these very elementary article will pull down this blog of the force lattice, but my buddy kindly reminds me, said my force lattice originally is not high, so I was relieved to write.

In fact, do not joke about, do a SharePoint administrator many times will not encounter a lot of developer to meet the problem of the big, difficult problems although it will often have, but more are some trivial assorted problems, But life is not the process of accumulation from the assorted 1.1 points? Does not record these trivial actually to oneself also is not the loss? Besides, they might be helping someone.

OK, say the question.

Fault Description:

We often build a SharePoint environment on a virtual machine, which usually doesn't matter when the default Web application is created, but if you create a few new Web application you will find that Although SharePoint said the creation was successful, it could not be opened in the browser, the error code displayed was 404 and the page could not be found.

Fault Causes and solutions:

The cause of the failure is not actually a problem with SharePoint, but the server does not have a DNS mapping for the address of the newly created Web application and does not know how to resolve the new address.

If it is an enterprise environment, then you have to find the management of the DNS people to solve the problem, but in their own virtual machine you just change the Hosts file is actually OK.

For example, I created a Web application named Testingmysite.

Hostheader is testingmysite.

Open this path on the server C:\Windows\System32\drivers\etc

Locate the Hosts file and edit it with Notepad

Add a line to the bottom of the file 127.0.0.1 testingmysite

So the server will understand that when the request to access Testingmysite this address, should point to the local, so that the page can be opened smoothly.

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.