473,326 Members | 2,134 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,326 software developers and data experts.

Default page

Hello all.

I have created an httpHandler to redirect requests to some files from
other places. For this handler to be called for all files I've added
Application mapping in the IIS with Extension "*" so that request of
any file goes through aspnet_isapi.dll. Then in web.config I specify
when to call the handler. This part seem to be working ok.

The problem comes up when I specify NO file in my request. e.g. if I
browse to http://myserver/myapp. At this point, since I did not
specify any filename, IIS should go and pick from the list of Default
Documents. But since I redirected all requests to aspnet_isapi.dll,
IIS does not do it... And I get 404 (from aspnet_isapi.dll).

So the question is... How to specify list of Default Document for
aspnet_isapi.dll?

Thanks,
MY
Nov 17 '05 #1
1 1621
Hello,

| The problem comes up when I specify NO file in my request. e.g. if I
| browse to http://myserver/myapp. At this point, since I did not
| specify any filename, IIS should go and pick from the list of Default
| Documents. But since I redirected all requests to aspnet_isapi.dll,
| IIS does not do it... And I get 404 (from aspnet_isapi.dll).

does not and does well. Default document specifies existing default
documents in some folder, and when goes to 404's, its not used.

I think that only way would be to specify in IIS some ASPX page as default
404 error document and process THIS request.

It's not so elegant and, but it's the only solution I know. I hope that
someone would give better one.

--
Michal A. Valasek, Altair Communications, http://www.altaircom.net
Please do not reply to this e-mail, for contact see http://www.rider.cz
Nov 17 '05 #2

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

Similar topics

8
by: whtevr | last post by:
Consider this HTML on an ASP page called default.asp in a virtual directory: <FORM name="Flogin" id="Flogin" action="" method=post> </FORM> Do I HAVE to put the literal "default.asp" into the...
7
by: aDc | last post by:
Hello, I am getting some strange behavior with my ASP.NET application. Anytime I make a request to a page in the application the page_load for that page is fired as expected BUT then the...
2
by: paul reed | last post by:
Hi, I use standard form-based authentication. If they haven't logged on yet they get routed to my logon page and all is well. Now, I want to implement a usability feature that after logging in,...
2
by: Michael McGuire | last post by:
I have a very strange problem occurring on a couple of servers I have an ASP.NET application written in C# running on IIS 5.0 with Windows 2000 Server. This is the first ASP.NET application...
5
by: Ted Apollo | last post by:
When I develop my ASP.NET 1.1 application locally, the default form is always "WebForm1.aspx." However, when I post the same application to a web server, the default becomes "default.aspx." Why...
2
by: zino | last post by:
Hi, in asp.net , I set the start page to "myStartingPage.html" when user get authenticated and the cookie is created, the following statement is supposed to redirect him to the original requested...
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
9
by: David Veeneman | last post by:
I'm just getting started with ASP.NET, using VS 2005. As an exercise, I opened the root web site in VS 2005 and created a simple welcome page. I saved the page as Default.aspx and made sure that...
8
by: Alan J. Flavell | last post by:
What I was trying to do: to offer a default stylesheet, plus another small stylesheet which can be applied additionally to the default one. Preferably, the optional stylesheet should be initially...
7
by: Jonathan Wood | last post by:
My site requires all users to log on. Depending on the user's role, they will have access to a certain set of pages. I implemented this by redirecting the user to the appropriate home page in...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.