Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 7th, 2006, 02:40 PM
Banned
 
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTP Error 404 Problem in ASP.NET

We had an old site with a static 404 page that worked fine. I've created a new site that was developed with ASP.NET. But when my Network Administrator tried to change the 404 page for this site from the old ASP page to the new ASP.NET page, the code for the ASP.NET page was viewed literally, like this:
Code:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" aspcompat="true" Debug="true" %>
...
Our site is using Windows 2003, IIS 6.0. If anyone has ever heard of this happening, and knows of a possible solution, that would be great. Thanks.

KWilliams
 
Old August 7th, 2006, 02:43 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

When you set up the error page in IIS, you can choose between File and URL.

When you choose File, and point to a file, it will be served as is. You need to set it to URL and then pass it a virtual path, like /Errors/MyError.aspx where /Errors/MyError.aspx is a path in your website.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old August 7th, 2006, 03:18 PM
Banned
 
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

It worked great. And what a great response time. Thanks once again:)

KWilliams





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom HTTP 404 Problem w/ASP to ASP.NET kwilliams ASP.NET 2.0 Professional 7 November 26th, 2007 04:17 PM
Can you help me to solve the Http 404 error. tytom2003 Pro PHP 2 July 4th, 2006 11:22 AM
ERROR: HTTP 404 File not Found or unable to stat f rpk BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 January 4th, 2006 10:20 PM
HTTP 404 - again javacelt JSP Basics 1 November 1st, 2003 06:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.