The online FAQ database contains hundreds of answers to frequently asked questions, articles on using our web server applications and other related technologies, and resolutions to common problems. If you are seeing an error message, be sure to try searching on the error message or error number that you are seeing.

Question I receive the following message when I visit any of the pages in the application. I have my applications set up to use the JET database.

The '..' characters are not allowed in the Path parameter for the MapPath method

I have checked all of the configuration settings and the application is correctly configured. What is wrong with the application?

Answer This error is message is displayed because the server that your website is running on has the "Enable parent paths" option for your website disabled. There are two solutions for this error message.

1. If you have access to the webserver that your site is hosted on, you can follow the following steps to "Enable parent paths" for your site.

  • Open the Internet Information Services console window from the Start -> Programs -> Administrative Tools -> Internet Services Manager menu.
  • Expand the tree for your webserver by clicking on the "plus" sign next to the computer name of your webserver.
  • You should see a list of the sites hosted on that webserver. Find your site and right click on the site name. Select "Properties" from the context menu that appears.
  • Click the "Home Directoy" tab in the website properties window.
  • Click the "Configuration" button on the right hand side of the "Application Settings" list.
  • Click the "App Options" tab in the Application Configuration window and place a check mark in the checkbox next to the "Enable parent paths" option.
  • Click "OK" and your site should now be able to handle '..' characters in the Server.MapPath method.

2. If you do not have access to the webserver your site is hosted on, you can correct this problem by modifying the database connection string in the database configuration files for each of the applications (XXdb.asp - XX is the application prefix AP for XcAuction Pro, CP for XcClassifieds, etc.).

• Find the full physical path to your database by running the application diagnostics. This can be found in any of the applications' administrator interfaces. Under the Tools -> Run Diagnostics menu option.
• From the diagnostics list, you will find all sorts of information about your server and the components installed on it. Look for a line at the top labeled Path Translated. This line contains the physical path for your application. An example would look like C:\Inetpub\wwroot\Membership\XcDiag.asp. This is where the diagnostic script is located in the Membership folder on this site.
• Open the database configuration file (XUDdb.asp for our example) from the Config & Templates -> System Templates menu for the application you are currently modifying and replace the Server.MapPath("..\Data\XUD3.mdb") reference with the full physical path as shown below:

Default - gsConnect = "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("..\Data\XUD3.mdb")

Full Path - gsConnect = "Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\Inetpub\wwroot\Data\XUD3.mdb"

Notice how all of the text " & Server.MapPath("..\Data\XUD3.mdb") was replaced by the full path with a trailing double quote ".
• Save the file and the error message should now disappear.

Note: If you immediately receive a different error:

Unterminated string constant

Go back and be sure you included the double quote " at the end of the path.