Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > I can map all files (.*) to asp.net worker.How do I map NO FILE to asp.net worker?

Reply
Thread Tools

I can map all files (.*) to asp.net worker.How do I map NO FILE to asp.net worker?

 
 
alex
Guest
Posts: n/a
 
      02-04-2005
I can map all files (.*) to asp.net worker process. But that is a
perfomance hit and default documents are no longer working.

How do I map "NO FILE" to asp.net worker?

Like if I have an url : http://domain/id1/id2/

When there is no file name in the url IIS checks for such dir and
throws 404 BEFORE passing execution to asp.net worker.

In fact this url http://domain/id1/id2/nosuchfile.aspx would trigger
404 message BY ASP.NET WORKER

If I could get such no file request to be handled by asp.net worker
then I can use custom HTTPModule to rewrite url to something like
http://domain/page.aspx?a=id1&b=id2 or redirect to custom 404 page
depends on the situation.

 
Reply With Quote
 
 
 
 
Lau Lei Cheong
Guest
Posts: n/a
 
      02-04-2005
How about setting Error 404 redirect page on the IIS Manager directly.
It's simpler and more usual way to handle this type of problem.

"alex" <(E-Mail Removed)> ???
news:(E-Mail Removed) ups.com ???...
> I can map all files (.*) to asp.net worker process. But that is a
> perfomance hit and default documents are no longer working.
>
> How do I map "NO FILE" to asp.net worker?
>
> Like if I have an url : http://domain/id1/id2/
>
> When there is no file name in the url IIS checks for such dir and
> throws 404 BEFORE passing execution to asp.net worker.
>
> In fact this url http://domain/id1/id2/nosuchfile.aspx would trigger
> 404 message BY ASP.NET WORKER
>
> If I could get such no file request to be handled by asp.net worker
> then I can use custom HTTPModule to rewrite url to something like
> http://domain/page.aspx?a=id1&b=id2 or redirect to custom 404 page
> depends on the situation.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If you can help... (map::find and map::insert) Ricardo C++ 8 07-08-2009 01:16 PM
![Oof Topix] All McCain, All Flip-Flop, All the Time Bucky Breeder Computer Support 7 09-27-2008 03:33 PM
how i can extract text from the PDF files,power point files,Ms word files? crazyprakash Java 4 10-30-2005 10:17 AM
Need to concatenate all files in a dir together into one file and read the first 225 characters from each file into another file. Tony Perl Misc 5 04-19-2004 03:28 PM
Re: WinDVD 3&5 say "Cann't find any cdrom/dvdrom device" - but File Manager can read all files on the drive! Just a friend DVD Video 0 08-12-2003 01:54 PM



Advertisments