Make sure to uncheck "Check that file exists" for extensions you want to get pathinfo for in IIS
If you use Request.PathInfo to get the path information for a file, it may not access the page you are using to process the pathinfo if you have not already set IIS so that it does not check to see that the file already exists.
If you are using IIS 5 (Standard for most XP machines),
Go to IIS, open the properties for the web site.
In the directories tab, click the configuration button.
Locate the extension of the file type that is processing the pathinfo (ex. .aspx, or .ashx) and click Edit.
Make sure that the Checkbox next to "Check that file exists" is unchecked.
In IIS 6, it is similar.
Open IIS and open the properties for the web site
In the Home Directories Tab, click the configuration button
Locate the extension of the file type that s processing the pathinfo (ex. .aspx, or .ashx) and click Edit.
Make sure that the Checkbox next to "Verify that the file exists" is unchecked.
I am not certain if IIS 7 has this issue or not, or what steps might be necessary if it does.