Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-09-2007, 04:33 PM
lherz lherz is online now
Registered User
 
Join Date: 07-21-2005
Posts: 15
Shut Down Problem

I am attempting to use the new "Shut Down" step to re-boot a remote server in a vbp version 6.6 project, and whenever the step executes, it fails with the following output text:

Connecting to 'IL-VM-C36QA3'...
Shutting down...
Error in Action (VBScript) script code at Line 25, Column 20 (Error initiating shut down)

However, the restart completes on the remote server.

I can ignore the failure, but would rather not...

Anyone have an idea as to what I am doing wrong?

I am specifying the remote server via a temporary macro
Reply With Quote
  #2  
Old 10-09-2007, 04:50 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
The error indicates that Win32Shutdown returned a non-zero value, which is documented to be an error condition. It sounds like a WMI/Windows bug if it's returning an error code but actually working (it returns 0 in our tests on Win XP SP2).

Instead of ignoring any failure, one workaround may be to add something like this to the step's vbld_StepDone script event:

Code:
If Step.BuildStatus = vbldStepStatFailed And _
  InStr(Application.Macros(vbldMacroSystem)("LASTSTEP_OUTPUT"), "Error initiating shut down") Then
   Step.BuildStatus = vbldStepStatSucceeded
End If
Reply With Quote
  #3  
Old 10-26-2007, 11:11 AM
lherz lherz is online now
Registered User
 
Join Date: 07-21-2005
Posts: 15
I will give this a try.

Just as an FYI, the "failure" only seems to occur on Windows Server 2003 machines, xp and Win 2000 machines all execute the step without error.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 01:37 PM.


Copyright © 1999-2023 Kinook Software, Inc.