Click here to Skip to main content
14,268,955 members
Rate this:
Please Sign up or sign in to vote.
See more:
I created a website using Visual Studio 2015. It has mostly static pages, but one aspx page. The whole thing runs fine under Visual Studio (debug mode) and also on the remote server (I used FTP when publishing it).

But when I tried to publish it to a folder on the local machine and run it with IIS there was a problem. It runs the static pages OK, but when I go to the aspx page an error is produced -

HTTP Error 404.3 - Not Found

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

I followed instructions (as best I could) and added a Managed Handler for .aspx file extensions.

System.Web.DefaultHttpHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

The same error continues to occur. I think it must be some configuration issue with the project or IIS, but I can't figure it out. Could someone please help me?
Posted
Comments
Wombaticus 12-Oct-15 17:47pm
   
It's most likely an IIS thing - if it were me, I'd put
"The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler"
into Google....

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Wombaticus - thanks for the reply. I did google it and finally came upon a solution. In 'Programs and Features' under 'Turn Windows Features On or Off' and then under 'Internet Information Services' I enabled the following -

.NET Extensibility 4.5
ASP.NET 4.5
ISAPI Extensions
ISAPI Filters

It fixed the problem. What a relief - I was battling this problem for hours today. I'm new to ASP.net and can use all the help I can get.

Victor
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100