This topic is locked

Server.MapPath() error

7/7/2005 4:51:10 AM
ASPRunnerPro General questions
C
chris124 author

Thanks to ASPRunner Pro and to your help in this forum I'm created (what I regard as) an excellent online database for purchasing property. Thanks.
Unfortunately I have one small error when trying to upload images, whenever I try to do this I get the following error message.

Server.MapPath() error 'ASP 0175 : 80004005'

Disallowed Path Characters
/Database/Admin/Property_Selections_edit.asp, line 1145
The '..' characters are not allowed in the Path parameter for the MapPath method.


can anyone help me fix it.

admin 7/7/2005

Hi,
here is what you need to do in order to fix the issue:

  1. Open IIS Manager, right click and choose properties on your virtual directory (or the website root if ASP pages located at the root.
  2. Click the Home Directory or Virtual Directory tab and choose the 'Configuration' button on that tab.
  3. Click the Options tab and make sure the "Enable parent paths" setting is enabled.

C
chris124 author 7/7/2005

Thanks, I'll give it ago