ASP error - Disallowed Parent Path
Question:
I have got a technical problem. Can you explain me the following
statement, please:
Active Server Pages error ''ASP 0131''
Disallowed Parent Path
/knowledgebase/admin/index.asp, line 1
The Include file ''../ScriptLibrary/incPureUpload.asp'' cannot contain ''..'' to
indicate the parent directory.
Answer:
The problem you described is related to configuration of your web server. In order to avoid this problem please do the following
1. Go to your IIS Manager
2. Right click your web site
3. Choose Properties >
4. Select Home Directory Tab
5. Click ‘Configuration’ button
6. Select App Options Tab
7. Check the Enable Parent Paths
8. Click OK and your new configuration will be saved.
This problem occures specially on new Windows 2003 Server systems as the default setting is not to use parent paths.
Note: Another simple solution is to put your upload script page in your site root. This way it won't need to use parent paths to the ScriptLibrary folder.
Comments
Disallowed Parent Path
Any help will be greatly appreciated.
RE: Disallowed Parent Path
Don't use parent paths in the first place!
Security concerns forenabling parentpath
I'm trying to launch a new site on a "major" web hosting "shared" server. My pages are ALL .asp data driven thus the default DMX Include (Connection) file call renders an error on every page but the "index". The host suggested security concerns and my first search reference on google suggested the same ( Michael Howard and David LeBlanc Writing Secure Code) - that parentpaths should never be enabled. So how about a solution - I tried the absolute file path address (e.g. <!--#include file="http://www.sampleaddress.com/Connections/dbfile.asp" -->) but this did not work.
??
Thanks
You must me logged in to write a comment.