Solved

aspx page can not be found

Posted on 2007-04-09
2
556 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
Comment Utility
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
Comment Utility
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

11 Experts available now in Live!

Get 1:1 Help Now