Solved

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

Posted on 2008-10-16
5
390 Views
Last Modified: 2013-11-07
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).
0
Comment
Question by:dageyra
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:GeoffSutton
ID: 22753663
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
0
 
LVL 1

Author Comment

by:dageyra
ID: 22788752
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).
0
 
LVL 1

Author Comment

by:dageyra
ID: 22788794
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
0
 
LVL 10

Expert Comment

by:GeoffSutton
ID: 22789732
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
0
 
LVL 10

Accepted Solution

by:
GeoffSutton earned 500 total points
ID: 22789807
Oops... I should have ready your entire post first.  I suspect that the multi site is not working because it checks the page header and redirects, so the .NET headers would be conflicting.  Are you using version 1 or version 2 of Multisite?  

I did some checking.  Abyss does handle virtual hosting (multiple sites) and ASP.NET 2.0, along with most other popular scripting languages(http://www.aprelium.com/abyssws/features.html).  I have used it in the past and have been very impressed at how easy it is to manipulate and use.  IIS requires a lot of configuration and Meta data to function correctly.

Let me know how you make out with this,

Geoff
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question