Can I use parent paths in ASP?

It is not possible to use parent paths on our IIS7 Servers. Instead, absolute virtual paths should be used. Code which includes a file by using parent path typically looks like this:

Link to code

With the virtual path, it would look like this:

Link to code

There are certain occasions, where this can cause issues, most often, it is due to a file being placed in the root of the domain folder, and accessed via parent path. If the file is in the root, then the app_data folder should be used instead due to security settings on the service.

On occations where a file (typically being a database) is added in the root and accessed via parent path, this procedure will not be possible. Instead another method should be applied, either by placing the file on one of the domains, and access it through a script. If using a database-file, an alternate solution is to use our MSSQL or MySQL server.

Refer to Microsoft's official support page for additional exampels and information:

If you would like Surftown to perform this task for you, or if you are in need of any other assistance, please have a look at the paid services we can offer through our Service Desk Services:

Should you not find what you are looking for then feel free to ask our support

Create A Ticket
Service Desk
Are you facing bigger challenges which requires a bit more know-how and time than you have?

Surftown Service Desk is services where we do the work to you. Our Service desk will get the job done.

Do it for me