|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Why ASP.NET can not handle file contains ~ in its name? thanks!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! 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/article.asp?p=101145&seqNum=2&rl=1 Show quoteHide quote "davidw" <dav***@affinisys.com> wrote in message news:ucb1SSVbFHA.1152@tk2msftngp13.phx.gbl... >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! > >
Other interesting topics
Session State stateserver or Sql Server
Did I do this correctly? - Display resized image from DB. Asynchronous Call <Head>Tag PostBack problem 2.0 App-Code Folder Support for 'Code-Behind' Render and get html from usercontrol HttpWebRequest.GetResponse on POST returns 405 method not allowed LDAP Query Help Difference between Page_Load and OnLoad |
|||||||||||||||||||||||