Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.Net will not work in IIS 6.0

Status
Not open for further replies.

lshields

Technical User
Nov 16, 2003
20
US
Hi all,

I am working with a new installation of Windows 2003 and I am not able to get any of my ASP.Net pages work. The system is not displaying an errors in the event logs and only shows a page cannot be displayed when trying to access the site.

I've uninstalled and reinstall IIS about 3 times and also reinstalled the OS from scratch. One interesting error that shows up after installing IIS is that Local Activiation for IIS Admin is not set for the Network Service Account under DCOM Configuration. I've added this manually each time.

All of the Web Service Extensions are enabled for ASP.Net and I'm at a loss for why this does not work. All of the ASPX and ASMX MIME types are registered and pointing to correct locations, but it seems as though it is not able to parse the pages. Normal HTML pages work fine.

Has anyone run into this before and has some idea of what is causing this? Any response would be appreciated, I've been plugging away at this for a couple of days now and running up against a way now.

Thanks in advance.
 
Are you sure that ASP.NET is checked in Windows Components->Application Server. Also you may want to try upgrading the version of .Net Framework currently installed on your system.
 
ASP.Net is checked in this section and we are currently running ASP.Net 2.0 for the application. We've installed all of the updates for the Server and .Net Framework.

Thanks
 
Please follow the procedure below to register ASP.NET:

Open Command Prompt.
Change directory as follows:
For 32-bit machines change to:
<WindowsDir>\Microsoft.NET\Framework\<version number>\
For 64-bit machines change to:
<WindowsDir\Microsoft.NET\Framework64\<version number>\
Run the command ‘aspnet_regiis.exe -i’ and press enter.

akalinowski
MCSE 2000, A+, N+, LCP, CNE
 
akalinowski,

Thank you for the steps, but this has already been accomplished. ASP.Net has been registered to IIS through aspnet_regiis.exe. The server extensions are available in IIS and are Allowed.

This is the frustrating part. I've done all I can think of but still no dice. The interesting part is IIS not granting Activation rights for IIS Admin to Network Service account on install.

Here's what I've done so far:
*Fresh Server
-Install IIS 6.0 and enabled ASP.Net extensions
-Install .Net Framework 2.0
-Allowed Asp.net 1.1 and 2.0 through Server Extension in IIS
-Tried to access the page -Receive DCOM Errors in Event Viewer concerning Network Service.
-Add Local Activation permission for Network Service for IIS Admin in DCOM Configuration
-Restart IIS
-Tried to Access Page Cannot be Displayed. No errors in Event log.
-Ran ASPNET_REGIIS.exe - i
-Tried to Access test.aspx again. Page Cannot be Displayed
-No HTTP Errors, no Event Log Errors

**Test.aspx is a simple page that displays Hello World and the current time.

**The page cannot be displayed errors are not 404 errors, it is not displaying any HTTP Error code through the browser.

Thanks
 
are you running the correct version of asp on your server?

go to iis mmc and then right click on your website instance, then go to properties, click the ASP.NET tab see ASP.NET versiion drop down, what version is selected?

also, you can turn offcustom errors to get a more detailed error message.

akalinowski
MCSE 2000, A+, N+, LCP, CNE
 
Running ASP.Net 2.0.
Friendly and Custom Error messages are disabled.

No errors on the screen or in event log.
 
double check your file location in the website instance, e.g. website says its stored in C:\inetpub\ and your file is located in C:\inetpub\ also are you sure you named the file test.aspx and not test.asp or tset.aspx? ... do you have a simple test.html page that does work?

i'm out of ideas :(

akalinowski
MCSE 2000, A+, N+, LCP, CNE
 
I am also out of ideas. Test.html does work which just displays the word Test. It is named correctly and is in the correct locations.
 
under site properties, "Home Directory" tab, what is it set on the execute permission? and what is the application pool?



akalinowski
MCSE 2000, A+, N+, LCP, CNE
 
Scripts Only and Default App Pool.

I have moved the setting for permissions between Scripts Only and Scripts and Executables. No luck with that either.
 
If anyone is still following this I was able to resolve this issue today:

The server we were working on was a client machine so the fresh server wasn't truely "fresh". We had them wipe out the OS and reinstall Windows 2003. Once they did this we installed IIS and ASP.Net 2.0. This allowed us to access ASPX pages.

It looks like some of the patches they applied during initial install were causing the problem. My guess would be a mismatch in the IIS components being installed from the original OS disk and some components that were updated from their patching system.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top