Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900