• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 567
  • Last Modified:

aspx page can not be found

I get a page cannot be found error when I try to run an aspx file (just a simple hello world example below).  We got a new server and I remember there being something with the aspx extension being prohibited by default and you have to allow it, but I can't remember how to do it.  Anyone remember?

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<% Response.Write "Hello World" %>
</body>
</html>
0
ia2189
Asked:
ia2189
2 Solutions
 
JipFromParisCommented:
In order to enable ASPX extension in IIS, some adjustments must be performed against IIS installation. You will find a program named aspnet_regiis.exe in the framework install folder. With a regular .Net 2.0 install, this should be the \WINDOWS\Microsoft.NET\Framework\v2.0.50727 directory. You should run this program from a command line window.
0
 
Dave_DietzCommented:
In the IIS Management Console leftt-click on "Web Service Extensions".

In the panel on the right right-click on ASP.NET <version number> and select Allow.

If there is no mention of ASP.NET in the Web Service Extensions you will need to navigate to the proper directory for the version of ASP.Net you want to use under c:\windows\microsoft.net\framework in a command prompt and run the following command:

aspnet_regiis -i -enable

This will set up the proper script mappings in teh Metabase and will automatically allow the extension for you.

Dave Dietz
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now