Re: Why won't IIS serve ASP files?



If you have Visual Studio 6 installed:

http://support.microsoft.com/default.aspx?scid=kb;en-us;842329

From: http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=202

Fear not, though, if you installed the Web server after installing the ..NET Framework. You can fix this problem by simply registering the ASP.NET extensions in IIS. Chance are, you installed the .NET Framework first, and then installed a Web server, like IIS. This causes problems for the following reason: when you install IIS, it does not automatically associate the ASP.NET extensions (.aspx, asmx, .asax, etc.) with the ASP.NET engine. Therefore, it does not properly render ASP.NET Web pages. If, however, you had installed the Web server first, and then the .NET Framework, part of the .NET Framework install would have automatically made these associations for you.

Fear not, though, if you installed the Web server after installing the ..NET Framework. You can fix this problem by simply registering the ASP.NET extensions in IIS. This can be accomplished by running the aspnet_regiis.exe program, available in the WINNT\Microsoft.NET\Framework\v1.0.3705 directory. Specifically, run the program as:

aspnet_regiis -i

(The -i option installs the needed associations in IIS.)


--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.

"Cal Learner" <CalLearner@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:06E58C81-E3E1-4274-95EA-5CC80DE513B7@xxxxxxxxxxxxxxxx
Recently got a new box running Win MCE (2002). Installed IIS components
without any trouble, and it appears that all of the required directories
(inetpub, wwwroot, etc) are in place, as are iisstart.asp and localstart.asp.
The network is functioning; I pinged localhost and computer_name and
everything ran as it should. Any html file serves just fine through
http://localhost/. The problem is that it will not serve any .asp files,
including localstart.asp. I keep getting the error 500 white screen. Even
unchecking the friendly error messages doesn't give me anything useful. I've
been all through the MMC a dozen times looking for anything unusual. The
default web is there. I don't know exactly what the permissions should be set
to, but this is a development system for me only, and I'm logged on as an
administrator, so that should not be the problem. Some versions of IIS
apparently allow you to designate which file extensions to allow and which to
block. (V6.0 apparently comes locked down, so the ASP extension has to be
selected, but I can't find anything similar in v5.1.)

I give up. What's left to consider? I've done this on previous machines (XP
Pro) and don't remember having these sorts of mysteries on my hands. Please
offer the most likely steps I should take to resolve this. It just can't be
as hard as I've made it!
.



Relevant Pages

  • Re: IIS 6 from a Samba share
    ... You may want to browse my blog entries to get a basic understanding of IIS, ... I can log on from that IIS machine to the samba server using the account info. Can make mappings, delete and add files, just like a regular share. ... no error messages are given, nothing in IIS logs, nothing in samba logs, nothing in the event viewer, just the 500 I get in my browser. ... In the IIS Software Development Kit or at the MSDN Online Library, search for topics titled Debugging ASP Scripts, Debugging Components, and Debugging ISAPI Extensions and Filters. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Fao Ken Kolda
    ... This is the remote obj that is in an empty web project ... enable custom error messages, "Off" to disable. ... access must be disabled in IIS. ... which requests belong to a particular session. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Mobile data replication/synchronization
    ... There are a variety of reasons that you can receive this message, so if you can get any of the inner error messages or error codes it would greatly help. ... You also noted that you are using the device emulator; have you verified network connectivity with the emulator? ... what versions of IIS and SQL Server/SQL CE are you using? ... Amit set me straight on the Mobile directory for the ...
    (microsoft.public.pocketpc.developer)
  • Re: ASP.NET applications not running on Win2K laptop
    ... "Friendly Http Error Messages". ... pages in my inetpub/wwwroot/but no aspx files. ... Reinstalled IIS ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS 5.0 fails to start on Win XP SPI
    ... check in the event logs to see if there are any error messages ... logged there related to IIS... ... Jeffrey Randow (Windows Net. ... Trying to reboot the server gave me the ...
    (microsoft.public.windowsxp.network_web)