msgbartop
Gossimer’s Premier Web Hosting and Domain Registration Knowledgebase.
msgbarbottom

21 Aug 10 Listing / Modifying an existing Virtual Directory

If you wish to list/modify your existing Virtual Directories, you may do so by following the below mentioned process:

  1. Login to your Control Panel, search for the Domain Name for which you have purchased this Web Hosting package and proceed to the Order details view. Click here to know how >>
     
  2. Click Manage Web Hosting Service in the lower toolbar. A Website Management interface will pop-up.
     
  3. Go to Manage Website -> Virtual Directory Manager -> List Virtual Directories. This will list all Virtual Directories you have added so far.
     
  4. Click the Virtual Directory you wish to modify.
     
  5. Here you may choose to modify the version of your .NET Application from the drop-down menu.
     
  6. You may also grant/deny write permissions to the IIS (anonymous) User on this Virtual Directory.
     
  7. Click Submit to save the changes.
  8.  

 

Tags: , , , , , , , , , , , , , , ,

14 Aug 10 Deleting an existing Virtual Directory

If for some reason, you wish to delete your existing Virtual Directory, you may do so by following the below mentioned process:   

  1. Login to your Control Panel, search for the Domain Name for which you have purchased this Web Hosting package and proceed to the Order details view. Click here to know how >>
     
  2. Click Manage Web Hosting Service in the lower toolbar. A Website Management interface will pop-up.
     
  3. Go to Manage Website -> Virtual Directory Manager -> List Virtual Directories.
     
  4. Select the checkbox adjacent to the Virtual Directory you wish to delete and click the Delete button above to delete the Virtual Directory.
     
  5. Click OK in the confirmation pop-up window to complete the deletion process.
  6.  

IMPORTANT    

A Virtual Directory with .NET Framework version 1.1 and no write permissions for the IIS (anonymous) User is created for the web folder by default. You cannot delete this Virtual Directory. You may however -

Tags: , , , , , , , , , , , , , , , , , , ,

04 Aug 10 Why are my ASP pages displaying an Error Message – Disallowed Parent Path or Disallowed Path Characters?

The Microsoft IIS 6.0 web server considers relative paths as a potential security hazard and therefore disables the same by default. To ensure that the server where your website is hosted can not be exploited in this fashion, Gossimer keeps relative paths disabled.

Examples

Relative Path: <img src=”../images/image.gif”>
Absolute Path: <img src=”www.yourdomain.com/images/image.gif”>

If you have designed a website in ASP which uses relative linking, then your website visitors may encounter an error message such as:

Active Server Pages, ASP 0131
Disallowed Parent Path
The Include file ‘../<filename.ext>’ cannot contain ‘..’ to indicate the parent directory.
/<path>/<filename.asp>, line <number>

OR

Server.MapPath()error ‘ASP 0175 : 80004005′ Disallowed Path Characters

You would receive such errors because you are referring to a file in a directory, which is a level above your Current Working Directory using Relative Paths or better know as Parent Paths.

To resolve this error, you have 2 options:

Option 1: Use an Absolute Path with the domain name

For every file you want to link within your ASP file, you need to mention the complete path including the domain name. For example, http://www.yourdomain.com/images/1.gif.
 

Option 2: Use an Absolute Virtual Path

You would need to modify your ASP scripts to use absolute virtual paths from the root of your website, instead of relative paths. For example, if you use an include file named “mycode.inc” at the root of your site, the virtual path would be “/mycode.inc.” If you use the same include file in a virtual directory named “/includes” on your server, the virtual path would be “/includes/mycode.inc” where “/” indicates the ROOT of your Website or the Web Directory.

The below example illustrates how to implement Virtual Paths in your scripts instead of Relative Paths -

<!–#include virtual=”/<virtual path>/<filename_you_wish_to_include>”–>

Tags: , , , , , , , , , , , , , , , , , , , , , , , ,