IIS 6 .net Framework 4 ASPX Pages Not Found

Recently ran into this again! 

One of my .Net Framework 3.5 web app projects got converted to 4.0.  I was not part of the conversion but I had been asked to do some simple updates. 

The web app published just fine on my Windows 7 dev box but it when I went to install it on the Windows Server 2003 with IIS 6, I was getting “The Page Cannot Be Found” errors on all .aspx pages.

PageNotFound

Normal .html pages were displayed just fine. The ASP .net Properties were set to the 4.0 .Net Framework.

IIS6dotNetConfig

So what was causing the issue? .Net 4.0 not enabled properly. 

I did two steps to fix this but I am unsure if the first one was required as it did not fix the issue by itself.

  1. Reinstalled ASP .Net 4.0. From Run:
    C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
  2. Enabled .Net 4.0 on IIS 6. From the command line in the C:\Windows\System32 folder:
    cscript iisext.vbs /EnFile C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll

The first step is easy to find through Google.

Full kudos to Johan’s blog for the enable instructions: http://johan.driessen.se/archive/2010/04/13/getting-an-asp.net-4-application-to-work-on-iis6.aspx

This entry was posted in .NET and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Posted February 22, 2011 at 1:48 am | Permalink

    Hi, I just could fix this problem by enabling the framework 4 by going to Web Service Extensions in IIS an then enabling framework 4 by clicking on allow button.

  2. Posted February 22, 2011 at 7:04 am | Permalink

    Kourosh -> was this on Windows 2003 or another OS?

One Trackback

  1. […] http://osgconsulting.net/2010/10/20/iis-6-net-framework-4-aspx-pages-not-found/ Like this:LikeBe the first to like this. This entry was posted in Uncategorized and tagged .Net Framework 4, Activate, ASP.NET, IIS, Install, Microsoft. Bookmark the permalink. ← Map IP Address to a Geographical Location […]

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*
*