Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Why ASP.NET can not handle file contains ~ in its name? thanks!

Reply
Thread Tools

Why ASP.NET can not handle file contains ~ in its name? thanks!

 
 
davidw
Guest
Posts: n/a
 
      06-10-2005
I found I can access static file in my IIS folder that have ~ in their file
name, but I have no way to let httphandler to handle such request, for
example, http://mydomain/test.aspx returns 401, but
http://mydomain/test~.aspx returns

File names for monitoring must have absolute paths, and no wildcards.

could anyone tell me why it acts like that?


Thanks!


 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      06-10-2005
People use the tilde so their file or directory will sort to the top and now
their little trick is biting back. I've even done the same myself. Simply
rename the file without the tilde. Hello?

The tilde is used in ASP.NET as the 'root path' character [1] and has its
history in *nix file systems.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://www.informit.com/articles/art...&seqNum=2&rl=1



"davidw" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I found I can access static file in my IIS folder that have ~ in their file
> name, but I have no way to let httphandler to handle such request, for
> example, http://mydomain/test.aspx returns 401, but
> http://mydomain/test~.aspx returns
>
> File names for monitoring must have absolute paths, and no wildcards.
>
> could anyone tell me why it acts like that?
>
>
> Thanks!
>
>



 
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
Its a bird, its a plane, its.. um, an Attribute based System? thunk Ruby 14 04-03-2010 10:08 AM
Its a bird, its a plane, its.. um, an Attribute based System? thunk Ruby 0 04-01-2010 10:25 PM
Its a bird, its a plane, no ummm, its a Ruide thunk Ruby 1 03-30-2010 11:10 AM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Regex problem, match if line contains <a>, unless it also contains <b> James Dyer Perl 5 02-20-2004 12:29 PM



Advertisments