Link to home
Start Free TrialLog in
Avatar of dageyra
dageyraFlag for United States of America

asked on

.NET 2.0 and IIS 5.1 -- 404 on .aspx

I am trying to get .NET 2.0 to run on Windows XP SP 2 with IIS 5.1.  I am able to run ASP pages fine.  When I load any .aspx page, I get "Server Error in '/' Application The resource cannot be found'.  The actual version of .NET is 2.0.50727.3053.

When I load up IIS and look at the properties of the website, there is an ASP.net tab and 2.0 is selected.  I have run aspnet_regiis.exe -u and -i over and over, with no noticeable change.  I have messed with the permissions granting access to Everyone, IUSR, IWAM, ASPNET, and still no change.

What else is required to bypass this error and get .NET working?  If I change the system to v1.0 (by uninstalling 2.0), the error goes away but the code does not work properly (as it was designed for 2.0).
Avatar of Geoff Sutton
Geoff Sutton
Flag of Canada image

Try downloading and installing the .net full install from www.microsoft.com/downloads and re-installing it.  It may be as simple as a corrupt DLL in the .Net files.  Also I would run sfc /scannow from the command prompt - it will ask you for your Windows CD if anything is found which needs repairing (SFC = system file check).   Once this is done, try running aspnet_regiis again and see if that helps.

Geoff
Avatar of dageyra

ASKER

Hello Geoff:

I ran the sfc /scannow and though it asked for the CD, I am not sure if it found/fixed any files as there was no report.  I uninstalled .NET 2.0 SP1, downloaded a fresh copy from Microsoft and installed it.  I also ran aspnet_regiis.exe -i again, but I get the same error.

One thing to note is that I am using the multi-site ASAPI filter as we want to run multiple websites at the expo where we will be exhibiting.  Could this be related to the issue?  I tried to add a basic .aspx file to the default website, but when I try to access it, I get a windows error saying that IIS has shut down unexpectedly (but it hasn't, I can continue to access sites unless it restarts itself after the shut down).
Avatar of dageyra

ASKER

Hello Geoff:

Here's an update:  I removed some items from the index.aspx in the default web site directory, and it works without an error.  However, I can't access the .aspx files through the multi-site, and this is really a must-have.  I still get the not found error.  Any suggestions--or perhaps is there a multi-site alternative that would allow me to use .net 2.0?  .NET 1.0 and classic ASP work fine through the multi-site.

And by multi-site, I mean this: http://www.hairy-spider.com/multisite.aspx
This is your problem.  IIS in Windows XP is NOT a server platform.  It will run a single webpage only.  In order to run multiple sites off of a single server you need to use a server platform such as Windows 2k SERVER, Windows 2003 Server or even 2008.  You may have better luck using a third party web server such as Abyss (http://www.aprelium.com/) or Apache (http://httpd.apache.org/) - I know that Abyss handles ASPX very nicely, but I have never tried to configure it for multiple pages.  Apache I have never used so I can't give you any solid info on it.

Good luck with this.

Geoff
ASKER CERTIFIED SOLUTION
Avatar of Geoff Sutton
Geoff Sutton
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial