Data Access Worldwide Knowledge Base
Article ID 2165 Article Title INFO: What values are not allowed as part of a virtual directory name Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2165 KBase Category WEB APPLICATIONS Date Created 09/16/2005 Last Edit Date 09/21/2005
Article Text
QUESTION:
I made a new workspace with a web application and when I test the application with "http://localhost/john.test.asp/testcontent.htm" I get "the page cannot be found" (HTTP 404) error. I checked the to see if testcontent.htm is there and it is, I checked whether I have enough rights and all is fine. What is wrong?
ANSWER:
The error is caused by the name of the application's virtual directory. The name contains a registered IIS extension, being .ASP.
You can find the registered extensions via:
- Start Menu
- Programs
- Administrative Tools
- Internet Information Services
- Expand treeview to "default Web Site"
- Look for the virtual directory (any webapp directory)
- Open the properties
- Click the "Configuration button" on the tabpage "Virtual Directory"
- The dialog that pops up shows the "forbidden" names on the tabpage "Mappings"
So be careful. While .test is not registered now who guarantees that this does not get registered in the future? One good thing: each virtual directory has its own list of extensions.
Contributed By:
Vincent Oorsprong
Company: Data Access Worldwide
email: vincent.oorsprong@dataaccess.eu
Web Site: http://www.dataaccess.eu
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.