473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

2.0 and Custom Error Pages

I'm playing with the last Beta for VS 2005 and trying to build an ASP.NET
web app. I have been using the built-in development web server so far, but
I think I may need to switch to IIS. The reason is that I want to redirect
404 errors to an .aspx page that will do some special handling of that
article (based on an article from asp.NET magazine). I couldn't figure out
a way to customize the error pages for the built in webserver. If there is
a way to do this, I'd prefer to avoid IIS for now, but if not...

I'm running IIS on a XP Pro SP2 (so I'm assuming it's IIS 5). It looks like
the Visual Studio install installed ASP.NET into IIS. I've used the Visual
Studio "Copy Web Site...", tool to copy my website to my local IIS server.
That did seem to create the directories and move all files. However, when I
try to browse to http://localhost/res/default.asp, I get an error message
of, "The XML page cannot be displayed". So it seems IIS doesn't realize
that this is an .aspx page it should compile and run, rather than server
raw. I'm not sure how to set this up properly. Once I get my project
basically working, what do I need to do to allow debugging (i.e. so I can
use my local IIS as my development web server)? Once that's all figured
out, I think I know how to do the 404 redirection.

Thanks

Nov 28 '05 #1
1 818
Well, this was pretty easy. Once I had used the VS2005 tool to copy my app
to the local IIS server, I simply had to close it, and then use "Open | Web
Project..." and choose local IIS, and browse to the newly copied website.
VS2005 then asked me if it should set up IIS for the ASP.NET app, I said
yes, and it worked! (Well I had to enable Windows Authentication for the
root folder for my IIS web app to get debugging to work, but after that it
was great.
Nov 29 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: CoreyMas | last post by:
This is what i am trying to do I have a DAL that contains all of my database connections/reads etc. I have a separate GUI layer that has my web pages I would like to pass my exception errors...
9
by: Nick | last post by:
the customError feature is not working. I have it setup as the help says in my web.config file. <customErrors defaultRedirect="DsAppError.aspx" mode="RemoteOnly"/> I tried in a couple...
0
by: Rhys666 | last post by:
OK, an issue I've come across before, but never found a cause for or resolution of, has decided to become the bane of my life again with ASP.Net Custom Error Pages. Basically, my web application...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
5
by: rote | last post by:
I'm using ASP.NET 2.0 and i have copied and pasted the code below to my Global.asax file but it desn't trap the error I want to trap the 401 access denied void Application_Error(object sender,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.