Solved

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

Posted on 2008-10-16
5
398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

695 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