Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-18-2006, 07:05 AM
ChrisBlake ChrisBlake is online now
Registered User
 
Join Date: 01-18-2006
Posts: 2
Question 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
Reply With Quote
  #2  
Old 01-18-2006, 04:41 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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).
Reply With Quote
  #3  
Old 01-25-2006, 09:53 AM
ChrisBlake ChrisBlake is online now
Registered User
 
Join Date: 01-18-2006
Posts: 2
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"
Attached Files
File Type: zip vd creation script.zip (500 Bytes, 1374 views)
Reply With Quote
  #4  
Old 01-25-2006, 03:22 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:11 PM.


Copyright © 1999-2023 Kinook Software, Inc.