Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

IIS HTTP Error 404.3 - Not Found: "cannot be served because of the extension configuration", add a handler or a MIME map

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

The IIS error page is headed "HTTP Error 404.3 - Not Found" and says "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." It means IIS has no rule for the file's extension. Decide first which kind of file you are serving: a script needs a handler, and a download needs a MIME map for that extension. A MIME map for a script or configuration file makes IIS hand out its contents, so it is never the fix for those. (Our own reading of Microsoft's warning against mapping .aspx and .config files.)

What the error means

Microsoft's IIS configuration reference for mimeMap says that, by default, IIS 7 will not return file types that are not added to the staticContent element or that have mappings in the handlers element. It adds that this behaviour "prevents unauthorized access to files that do not have mappings". Our own reading: a file whose extension has neither a MIME map nor a handler is the case that ends in 404.3.

Microsoft's list of IIS status codes describes 404.3 as a "MIME type restriction": the current MIME mapping for the requested extension is invalid or not configured. Its neighbour 404.4 is "No handler configured": the extension of the requested URL has no handler to process it. The error page itself covers both ideas in one message.

Microsoft's guidance on the plain "HTTP 404 - File not found" error says that when an extension is not mapped in the MIME mappings, the server records a "404.3" entry in the W3C extended log. Other 404 sub-status codes have different causes. For example, 404.7 is "File extension denied" by request filtering, a separate setting, and 404.13 is a request-size limit.

Likely causes

Cause What you see How to confirm
A downloadable file type has no MIME map (for example .tab) 404.3 for that extension only; other files work The extension is missing from the staticContent list for the site
A script or page type has no handler mapping 404.3 on .aspx, .php or similar No entry for the extension in the handlers list
The handler exists but its preconditions do not match the pool Handler line present, error persists Microsoft says to compare preconditions such as runtimeVersion, pipelineMode and bitness with the application pool
The feature that supplies the handler is not installed 404.3 for every page of that type Microsoft's list of causes includes "If ASP.NET is not installed"
A typing error in the handler line Same as a missing handler Microsoft says to check for typographical errors in the expected handler line

Prove the cause before changing anything

All steps here only read.

1. Name the extension. Take it from the requested URL and from the error page's detailed information. In Microsoft's example of this error the detailed information shows the module StaticFileModule and the handler StaticFile. Our own reading: that pairing means no more specific handler claimed the request, so the static file handler tried it.

2. Decide what the file is. A page that should run code is a script. A file the visitor should fetch as it is, such as a price list or a data file, is a download.

3. List the MIME maps in effect for the site. Microsoft's AppCmd page gives the form appcmd list config <URL> /section:SectionName, with a site such as "Default Web Site/" as the URL.

%windir%\system32\inetsrv\appcmd list config "Default Web Site/" /section:staticContent /config:*

Microsoft's AppCmd page says that by default the command displays only configuration that is explicitly set, and that adding /config:* displays the effective configuration including inherited or default values. The default MIME map list is inherited, so the list needs /config:*. Look for a mimeMap row with your extension.

4. List the handlers.

%windir%\system32\inetsrv\appcmd list config "Default Web Site/" /section:handlers

Look for a row whose path matches the extension. Microsoft's tips say to make sure the expected handler for the page is mapped and to compare its preconditions with the application pool.

5. Check the feature. Microsoft says to verify that the feature you are trying to use is installed; for ASP.NET pages that means ASP.NET is installed on the server.

Fix

A download has no MIME map

First save the current state:

%windir%\system32\inetsrv\appcmd list config "Default Web Site/" /section:staticContent /config:* > staticcontent-before.xml
copy D:\sites\app.example.com\web.config D:\sites\app.example.com\web.config.2026-12-03

The second line applies if the site already has a web.config; it writes the saved copy into the same folder, and D:\sites\app.example.com\ stands for your site's own folder. By default AppCmd writes configuration at the level where it is set, which for a site is a web.config at its root.

Risk: the next command adds a MIME map, so IIS starts serving every file with the extension .tab in that site to anyone who requests it. Microsoft's own warning says not to create a MIME map for content that users should not download, such as .aspx pages or .config files, and to check whether clients can download file types such as .xml or .mdf before enabling them.

Add the map. Microsoft's mimeMap page gives an AppCmd example for the extension tab with the type text/plain. Its AppCmd line writes fileExtension='tab' without a dot, but the same page describes the attribute as an extension such as .txt or .png, and its web.config sample for the same map carries the dot (fileExtension=".tab"). The command below therefore writes the dot; use the type that fits your file.

%windir%\system32\inetsrv\appcmd set config "Default Web Site" -section:system.webServer/staticContent /+"[fileExtension='.tab',mimeType='text/plain']"

Risk, only if you back out: the command below copies web.config.2026-12-03 over the site's web.config, so any other change made to that file since the save is lost, and requests for .tab files return 404.3 again.

To undo it: restore the web.config that the save step copied. If the site had no web.config before the change, the copy in the save step does not exist and the restore below cannot be used. In that case the way back is to remove the new mimeMap entry from the web.config that AppCmd created, by hand; that file may be the only trace of the change.

copy /Y D:\sites\app.example.com\web.config.2026-12-03 D:\sites\app.example.com\web.config

To check the undo, list the section again with /config:* and compare it with staticcontent-before.xml.

Microsoft's page also documents an IIS Manager route for the same change (MIME Types, then Add in the Actions pane). The Risk paragraph above applies to it equally.

A script has no handler

Microsoft's error text says to add a handler, and its tips say to make sure the expected handler is mapped, to install the feature if it is missing, and to install ASP.NET for ASP.NET pages. The handler definitions depend on the application and its runtime, and Microsoft's page gives no single command for them. Microsoft's handlers reference says a handler is the IIS component that processes requests to specific content, and that handlers are used for any resource that is not a static file.

Do not use a MIME map to get past this error for a script. Our own reading: the error would then go away because IIS serves the script file as a download, which can expose its source code. Microsoft's text says dynamic scripting pages "should always be processed through a handler".

If the application is ASP.NET, a related fault is covered in IIS HTTP Error 500.21: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list.

Example (illustrative): on web01, the site "Default Web Site" serves a folder /files of guitar chart files. A request for https://app.example.com/files/chart1.tab returns "HTTP Error 404.3 - Not Found". Other files in the folder load. The administrator lists staticContent with /config:* and finds no tab entry, so the file is a download with no MIME map. The folder holds only public charts, so the administrator saves the section to staticcontent-before.xml, adds .tab with text/plain, and the file now downloads.

Confirm the fix

  1. Request the same URL again; the file downloads or displays instead of returning 404.3.
  2. List staticContent again with /config:* and confirm that exactly one new mimeMap row for the extension exists.
  3. Our own reading: request one file with an extension you did not map; it should still return 404.3, which shows the default protection is still in place.

What to watch afterwards

  • Keep MIME maps to the extensions you serve on purpose.
  • Re-check them whenever a folder's contents change, since a MIME map applies to every file with that extension in scope.
  • If the error returns after a redeployment, compare the site's web.config with the saved copy.

Risks and limits

  • These commands have not been run or lab-tested.
  • A MIME map makes every file with that extension downloadable in the scope where it is set. Microsoft's page gives no way to limit it to a single file.
  • The wording of the error page is taken from a Microsoft Learn archive page and may differ slightly between IIS releases.

Sources