HomeMicrosoft – Internet Information Server (IIS) – Error – The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Microsoft – Internet Information Server (IIS) – Error – The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Introduction:

Post some mishaps trying to get IIS back working on one of our servers. Btw, the OS is a MS Windows 2012 running IIS 8.

Error Message:

But, when we train a web browser against the web site, we are getting an error.

Here is the error message:

Error Message – Caption

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Most Likely Causes:

Here are the most likely causes:
•It is possible that a handler mapping is missing. By default, the static file handler processes all content.
•The feature you are trying to use may not be installed.
•The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)
•If ASP.NET is not installed.

Review list of installed packages/features

Introduction

Let us go review list of MS Windows installed features.

Command Line

we will use dism…

rem get full list of installed features
dism /online /get-features /format:table
rem get list of installed packages that have net in their names
dism /online /get-features /format:table | find /I "net"

Output:

Tabulated Listing:

Item

Value

NetFx3ServerFeatures

Enabled

NetFx3

Enabled

IIS-NetFxExtensibility

Disabled

IIS-NetFxExtensibility45

Disabled

IIS-ASPNET

Disabled

IIS-ASPNET45

Disabled

WAS-NetFxEnvironment

Disabled

AS-NET-Framework

Disabled

NetFx4ServerFeatures

Enabled

NetFx4

Enabled

NetFx4Extended-ASPNET45

Disabled

Output:

It seems the IIS-ASPNET * features are disabled. We know we need them as they allow IIS to use .Net Toolset.

Not sure as to what IIS-NetFxExtensibility * stand for

Also, not sure about NetFx4Extended-ASPNET45

Add packages – IIS-ASPNET *

Command Line

Deployment Image Servicing and Management tool Version: 6.2.9200.16384 Image Version: 6.2.9200.16384 Enabling feature(s) [===========================99.8%========================= ] Error: 50 The operation is complete but IIS-ASPNET feature was not enabled. A required parent feature may not be enabled. You can use the /enable-feature /all option to automatically enable each parent feature from the following list. If the parent feature(s) are already enabled, refer to the log file for further diagnostics. IIS-NetFxExtensibility, NetFx4Extended-ASPNET45 The DISM log file can be found at C:\Windows\Logs\DISM\dism.log