Microsoft – Internet Information Server – Error – An error occurred on the server when processing the URL. Please contact the system administrator.

Background

Playing around with a Vendor’s web site and found an unhelpful error.

 

Error Message


Error Message

An error occurred on the server when processing the URL. Please contact the system 
administrator.

If you are the system administrator please click here to find out more about this 
error.


Error Image

defaultCustomized-AnErrorOccurred


Create Lab Web Site

 

Let us go create a small website and see if we can reach same error, troubleshoot and re-mediate it.

 

Create Web Application

 

Let us create a new Application.  We will use the instructions at:

Create a Web Application (IIS 7)

http://technet.microsoft.com/en-us/library/cc772042(v=ws.10).aspx

 AddApplication

 

 

 

Create Virtual Directory

 

Let us create a new Application.  We will use the instructions at:

Create a Virtual Directory (IIS 7)

http://technet.microsoft.com/en-us/library/cc771804(v=ws.10).aspx

 

Add Virtual Directory

Here is what we we did:

  • Select the web site
  • Right click on your selection and from the drop down menu, select “Add Virtual Directory”
  • In the “Add Virtual Directory” window, enter the following information
    • Alias :- customize
    • Physical path :- E:\DanielAdeniji\website\Lab\LabVDIR\customize

 

 

AddVirtualDirectory

 

List Virtual Directories

  • Select the web site
  • Access the Actions pane
  • Click on “Access Virtual Directories”

 

VirtualDirectoryList

 

 

Source Code

Let us create a couple of Classic ASP Files:

 

default.asp

A simple hello world ASP Page.

<%

	Response.Write "Hello - My name is Sam"
	
%>

 

 

defaultCustomized.asp

A bit more complex ASP Page that includes an “header” file.

<!-- #include virtual ="/customize/header.inc" -->

<%

	Response.Write "Hello - My name is Sam"
	
%>

 

 

customize\header.inc

Here is the header file.

Const CompanyName = "Sallie Mae"

 

 

Test

default.asp

default-asp

 

 

defaultCustomized.asp

defaultCustomized-asp

 

 

Trouble-shooting

 

Let us use Failed Request Tracing Rules to attempt to trouble shoot.

 

Failed Request Tracing Rules

 

Configuration

Launch the Failed Request Tracing Rules configuring by accessing our Web Application, switching to the “Features View”, and selecting the “Failed Request Tracing Rules” icon.

 

ConfigurationAccess

 

Specify Content To Trace

In the “Specify Content to Trace” window, for completeness, let us choose “All Content (*)”

SpecfifyContentToTrace

 

Define Trace Conditions

In the “Define Trace Conditions” window, for fullness, let us enter 100-999 as our “Status code(s)”

DefineTraceConditions
Specify Trace Providers

In the “Define Trace Provider” window, we will choose all Providers “ASP”/”ASPNET” / “ISAPI Extension”, “WWW Server”.

SelectTraceProviders

 

Alerts

We will still notice an Alert window that states “Failed request tracing is not enable for this website”:

FailedRequestTracingIsNotEnabledForThisWebsite

To address, please do the following:

  • Access the top level Web Site
  • In the Access panel, in the Configure sub panel, access the Failed Request option

 

Please ensure that the “Enable” choice is made and hopefully choose a non-system folder with plenty of room.

EditWebSiteFailedRequstTracingSettings

 

 

Result

Once fully configured, we will launch our browser and retry.  Got same error, but now we also have generated diagnostic files.

 

IncludeFileNotFound

 

The error states that IIS is looking for our included file underneath the “E:\WebSiteEmpty\Customize\headerinc” folder.

It is in effect looking under our main web site and not underneath our web application.

There are a couple of ways to address this.  They include making our web site a top level web site and not just a web application.

 

 

Reading

Life is good as everywhere I need to be is still Bart-able and I just finished reading a sincere love story.  It is Barbara Delinsky’s “The Carpenter’s Lady“.

References

References – Microsoft – IIS

About these ads

One thought on “Microsoft – Internet Information Server – Error – An error occurred on the server when processing the URL. Please contact the system administrator.

Leave a Reply

Fill in your details below or click an icon to log in:

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