Posts Tagged ‘vbscript’

Active Server Pages error ‘ASP 0131′

Friday, October 23rd, 2009

If you have the following error:

Active Server Pages error ‘ASP 0131′
Disallowed Parent Path

You need to enable Parent Path in your IIS website. To resolve this problem without changing the application:

1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
2. Double-click your computer name in the left pane, and then double-click Web Sites.
3. Locate the Web site and directory that houses the ASP application.
4. Right-click the application site or directory, and then click Properties.
5. Select Home Directory, and then click Configuration.
6. Click Options, and then click to select the Enable Parent Paths check box.
7. Click OK two times.

Variables Session.Contents.Item are not recognized in virtual directory/subdirectory

Friday, October 23rd, 2009

My variables defined in GLOBAL.ASA are not recognized in VBSCRIPT, ASP.

My application in virtual directory in IIS doesn’t run. It seems that is in a loop.

If variables such as Session.Contents.Item defined in GLOBAL.ASA are not recognized in virtual directory/subdirectory, check that GLOBAL.ASA is in the main directory and not in the sub directory or virtual directory.

For eg.:

Your app is in C:\Inetpub\wwwvar\app1\subdir

The global.asa has to be in C:\Inetpub\wwwvar\app1\global.asa