Solved

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

Posted on 2008-10-16
5
382 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now