Advertisement:

Skystone Software

http://www.SkystoneSoftware.com

Scott Waletzko's Blog
Registering ASP.NET with IIS
Published: 2/17/2008
XMl / RSS

For reasons beyond my comprehension, when you install the .NET Framework on a server that has IIS installed and configured, the installation doesn't automatically register the ASP.NET server extensions with IIS. This will result in a seemingly random "Page cannot be found" IIS message when you try to navigate (browse) to an .aspx page.

To fix this, you have to manually complete the installation by asking ASP.NET to register itself with IIS, and then you have to enable the ASP.NET extension (which by default will be prohibited within IIS).

To register ASP.NET with IIS, follow these steps:

  1. Open a command prompt.
  2. Navigate to: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\" (replace the version with whatever version of .NET you wish to register)
  3. Type "aspnet_regiis.exe -I" and hit enter.

Once you've done this, you can navigate to the "Webservice Extensions" node under your Web site in the IIS MMC snap-in and enable it for that site.



Questions or Comments? .

VB to C# and C# to VB translation provided by Instant C# and Instant VB.