Microsoft – SharePoint – v2010 – Error Accessing User Web Application – Error – HTTP 404/ HTTP 200

Introduction

Once upon a time, installed Microsoft SharePoint 2010, and now back to create a new “Web Application”.

My hope is to play with Lists a bit; especially importing and exporting them between Sites.  And, to so I need my own SharePoint Web Application; as I can not use the system’s own “Central Administration Web Application”.

Created the Web Application, but when I try to access it, I am getting an HTTP Error.

Actually, IE offers HTTP Error 404.

The webpage cannot be found

 HTTP 404

And, chrome come back with:

HTTP/1.1 200 OK
Server: Microsoft-IIS/8.0
Date: Wed, 25 Dec 2013 03:34:25 GMT
Connection: close

Background

Let us quickly review our Web Application creation steps.

Prepare To Create a Web Site

To access the Web Application creation pathway:

  • Launch a web browser
  • Access SharePoint Central Administration Home Page.  The URL will resemble  (http://<SharePointWebServer&gt;:<portNumber>/default.aspx)

CentralAdministrationHomePage

Initiate Web Site Steps

To access the Web Site creation pathway:

  • Once on the default page of the “Central Administration” page, pay attention to the “Application Management” section
  • In the “Application Management” section, access “Manage Web Applications”

Web Application Listing

The system displays the Web Applications.

WebApplicationsManagement

To create a new Web Application:

  • Once on Web Applications page, access the “New” on the top men bar

Create New Web Application Screen

The system displays the “Create New Web Application” screen:

Page 1 – Section – 1

CreateNewWebApplication-Page1

Page 1 – Section – 2

CreateNewWebApplication-Page2

 

I think the important pieces are:

  • Authentication :- Classic Mode Authentication
  • IIS Web Site : SharePoint :- 13203
  • Port :- 13203
  • Path :- C:\inetpub\wwwroot\wss\VirtualDirectories\13203
  • Authentication Provider :- NTLM
  • Allow Anonymous – No
  • Use Secure Sockets Layer (SSL) – No
  • Public URL :- http://SHAREPOINTWEBSERVER:13203
  • Application Pool – Creating a new one (SharePoint – 13203)  and the Service Account to use
  • Database Name and Authentication :- WSS_CONTENT_13203 // Database Authentication – Windows authentication

I just saw my old manager on Facebook (FB).  He has a nice haircut.  The Application Creation step will take a while and so let me take that break.

Upon returning was greeted with the screen pasted below.

Application Created:

The Microsoft SharePoint Foundation Web application has been created.

If this is the first time that you have used this application pool with a SharePoint Web application, you must wait until the Internet Information Services (IIS) Web site has been created on all servers. By default, no new SharePoint site collections are created with the Web application. If you have just created a Forms Based Authentication (FBA) Web application, then before creating a new site collection, you will need to perform some additional configuration steps.

Learn about how to configure a Web application for FBA.

Once you are finished, to create a new site collection, go to the Create Site Collection page.

ApplicationCreated_v2

The message above simple states that there are some additional steps that we need to take:

  • Wait for the IIS Web Site to be created on all servers that are in our Web Farm
  • If using Forms Based Authentication, the take additional steps
  • Per our new web application, create a new SharePoint Site Collection

As I did not read the instructions pasted above, I was lost in the dark.

Using Browser, Access Web Application – HTTP Error

Using a browser, I tried accessing the Web Application.

In IE , got the error pasted above.

Text:

The webpage cannot be found

 HTTP 404

 

Image:

TheWebPageCannotBeFound-Error-404

Chrome comes back with:

Text:

HTTP/1.1 200 OK
Server: Microsoft-IIS/8.0
Date: Wed, 25 Dec 2013 03:34:25 GMT
Connection: close

Image:

Chrome-HTTP-Error-200 OK

 

Firefox comes back with:

Text:

HTTP/1.1 200 OK
Server: Microsoft-IIS/8.0
Date: Wed, 25 Dec 2013 03:38:50 GMT
Connection: close

Image:

Firefox-HTTP-Error-200 OK

 

To re-mediate, I tried a few things to understand the problem better:

  • SharePoint 2010 Diagnostics
  • Fiddler
  • ULSViewer

But, still had to take to Google and was able to find help upon goggling for SharePoint 2010 and HTTP 404 and HTTP 200.

Create Site Collection

HTTP 404 error resolution pathways is a bit more convoluted.

So let us go with the help we got for HTTP 200.

Here are the relevant links:

Though Mark Rhodes’ posting was primarily about detaching and re-attaching the database, he  generously noted the following:

Instead of displaying a lovely site, my browser just displayed a blank error message.   Turning off Friendly Error messages I found the following error message displayed :

HTTP/1.1 200 OK Server: Microsoft-IIS/7.5 Date: Tue, 10 Aug 2010 03:19:45 GMT Connection: close

Unfortunately this error is not as helpful as you would think.  The only time I’ve seen similar errors with SharePoint were with 404 errors, usually because a Web Application existed, but a Site Collection did not.

To create a Site Collection:

  • Access the Central Administration web site
  • In the Control Administration web site, review the menu on the left panel
  • In that left panel, click on the “Application Management” link
  • In the Application Management screen, navigate to the “Site Collections” section, click on the “Create site collections” link
  • In the “Create Site Collection” page, pay attention to the data that you select or enter

Create Site Collection – Guideline

  • Web Application :- Please select the actual Web Application that you will like configured during this step.  All available Web Applications are listed and so it is quite important that you select the right one
  • Web Site Address :- accept the default
  • Template Selection :- For our intended purpose, we selected Team Site
  • Primary Site Collection Administrator :- Select the Active Directory account that will be our Primary Administrator
  • Secondary Site Collection Administrator :- Select the Active Directory account that will be our Secondary Administrator

SharePoint 2010 \ Central Administration \ Application Management

ApplicationManagement

SharePoint 2010 \ Central Administration \ Create Site Collection

Section 1

CreateSiteCollection-1

Section 2

CreateSiteCollection-2

SharePoint 2010 \ Central Administration \ Site Created

Textual Output:

The new top-level site was created successfully with the specified URL. If you have permission to view the Web site, you can do so in a new browser window by clicking the URL. To return to SharePoint Central Administration, click OK .

http://<server-name&gt;:13201

Image Output:

SiteCreated

 

Using Browser, Access Web Application – Good!

Using a web browser, accessed the Web Application

HomePageGood

Conclusion

As Diane Sawyer will say “I think the one lesson I have learned is that there is no substitute for paying attention“.

I did not pay sufficient attention to Microsoft’s messages and hint; primarily the one about having to create a Site Collection.

I was a bit overly reliant on diagnostic tools to see me through.

But, the good thing about tools is that they only see so much.  And, sometimes they see things differently; for example Microsoft IE sees HTTP 404 , while Google Chrome and Mozilla Firefox sees HTTP 200.

This post is dedicated to Microsoft MVP, Mark Rhodes.  Some might argue that Vendors give too many of these accolades away, I beg to differ as we might be seeing the glass have full.

Yes, there is a good way to do things, but for those of us who lurk in the dark and margins,  it is good to know that there those who share their personal experiences and those they gain from helping others.

References

References – SharePoint – Site Collection

References – SharePoint – Forms Based Authentication

References – Troubleshooting Applications

References – SharePoint – HTTP Error / 404

References – Sharepoint 2010  – HTTP Error / 200 OK

References – Sharepoint -Web.config – trust level=”WSS_Minimal” vs trust level=”Full”

References – Permission set for ASP.Net

One thought on “Microsoft – SharePoint – v2010 – Error Accessing User Web Application – Error – HTTP 404/ HTTP 200

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s