Default page

  • Thread starter Thread starter Nekit
  • Start date Start date
N

Nekit

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
 
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.
 
Back
Top