Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Help: IIS Stuff - How To's/Errors (https://www.kinook.com/Forum/showthread.php?t=1470)

ChrisBlake 01-18-2006 06:05 AM

Help: IIS Stuff - How To's/Errors
 
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 03: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 08:53 AM

1 Attachment(s)
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 02: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.


All times are GMT -5. The time now is 10:03 PM.


Copyright © 1999-2023 Kinook Software, Inc.