Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 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

13 Experts available now in Live!

Get 1:1 Help Now