PDA

View Full Version : Help: IIS Stuff - How To's/Errors


ChrisBlake
01-18-2006, 07:05 AM
Hi,

I have a couple of tasks that i'm trying to accomplish - when deploying to IIS6 (Win2k3)

1. Create a number of virtual directories under the default web site

2. Create a second web site and then some virtual directories under the new web site..


With step 1, i have managed to create the steps, everything looks ok, but when i run the steps in VBPro6 i get the following error:

"18/01/2006 11:36:39: Building project step 'VirtualDirectoryName'...
Creating virtual directory...
Error in Action (JScript) script code at Line 53, Column 3
18/01/2006 11:36:40: Step 'VirtualDirectoryName' failed
18/01/2006 11:36:40: Build ended."


Regarding Step 2,

I am completely unsure how to go about creating a second website..

Any help appreciated!!

Kind Regards
Chris

kinook
01-18-2006, 04:41 PM
1. You can view the failing action code by pressing F8. The line is

var objDir = objSvr.Create("IIsWebVirtualDir", vbld_StepProp("Name"));

Not sure what could cause that to fail. What is the name of the virtual directory being created? Can you ZIP and post your .bld file?

2. There is no built-in action in VBP to create a new web site. You would need to write some script code or action to do that (you could start with the [JScript] code in the IIS Virtual Dir action).

ChrisBlake
01-25-2006, 09:53 AM
Thanks for your reply.

I've attached the script that fails.

It gives me the following error:

"Error in Action (JScript) script code at Line 53, Column 3"

kinook
01-25-2006, 03:22 PM
You need to reverse the values in the 'Directory name' and 'Local path' fields. Directory name is the name of the virtual dir and Local path needs to be the drive:\path\to\virtualdir.