Solved

aspx page can not be found

Posted on 2007-04-09
2
557 Views
Last Modified: 2009-05-07
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
Comment
Question by:ia2189
2 Comments
 
LVL 3

Assisted Solution

by:JipFromParis
JipFromParis earned 100 total points
ID: 18879052
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
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 150 total points
ID: 18879768
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

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

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 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

18 Experts available now in Live!

Get 1:1 Help Now