Subject: HTTP Error 404 Problem in ASP.NET
Posted By: kwilliams Post Date: 8/7/2006 2:40:11 PM
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:
<%@ 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
Reply By: Imar Reply Date: 8/7/2006 2:43:33 PM
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.
Reply By: kwilliams Reply Date: 8/7/2006 3:18:06 PM
Hi Imar,

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

KWilliams

Go to topic 48098

Return to index page 209
Return to index page 208
Return to index page 207
Return to index page 206
Return to index page 205
Return to index page 204
Return to index page 203
Return to index page 202
Return to index page 201
Return to index page 200