frankn Report post Posted 01/20/2014 10:07 PM Trying to figure out what is wrong with this script that is causing it to timeout. sGame = "" 'MsgBox $RV_LastKeyPress If $RV_LastKeyPress = 1 then sGame = "EGA" End if 'MsgBox sGame sReturn = "[GameID]{" & sGame & "}" MsgBox sReturn set vg = CreateObject("vgServices.CommandLink") vg.Script_Return $RV_LINEID, sReturn set vg = Nothing Share this post Link to post
SupportTeam Report post Posted 01/20/2014 10:27 PM MsgBox will probably not work when the VBScript is ran from within VoiceGuide as VoiceGuide v7 runs as a Windows Service. Most likely the error here is that this line: If $RV_LastKeyPress = 1 then sGame = "EGA" End if should be: If "$RV_LastKeyPress" = "1" Then sGame = "EGA" End If To better see what is happening we would need to see the vgEngine trace capturing the call. When posting traces please .ZIP them up before posting. Share this post Link to post
frankn Report post Posted 01/21/2014 06:59 PM My VBS is dying, please find attached Engine logs, not sure what is causing it to timeout. 0121_0131_vgEngine.txt Share this post Link to post
SupportTeam Report post Posted 01/21/2014 07:57 PM The VBScript that is ran is saved in file: C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs Can you please try running C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs by just double clicking on it. Do any errors appear on screen when you run C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs by double clicking on it ? 075932.000 6 1 1 RunModule start Run VB Script, [Evaluate Midday Games], iModuleIdx=14, previous: vgm=15, vgs=2:2 075932.000 6 1 1 t timer set 3 sec : EV_TIMEOUT_GOTOMODULE 075932.000 6 1 1 QueueUserWorkItem scrmod_RunVbs.RunModule call 075932.000 4 1 1 state [Evaluate Midday Games] type: Script_VBScript, iRunWait=1 075932.000 4 1 1 rv replace start ------------------------------ sGame = "" 'MsgBox $RV_LastKeyPress If "$RV_LastKeyPress" = "1" then sGame = "EGA" End if 'MsgBox sGame sReturn = "[GameID]{" & sGame & "}" 'MsgBox sReturn set vg = CreateObject("vgServices.CommandLink") vg.Script_Return $RV_LINEID, sReturn set vg = Nothing ------------------------------ 075932.000 4 1 1 rv replace end [sGame = "" 'MsgBox 1 If "1" = "1" then sGame = "EGA" End if 'MsgBox sGame sReturn = "[GameID]{" & sGame & "}" 'MsgBox sReturn set vg = CreateObject("vgServices.CommandLink") vg.Script_Return 1, sReturn set vg = Nothing] 075932.000 4 1 1 script will be ran from file: C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs 075932.000 4 1 1 on_hold_file=, iModuleIdx=14 075932.000 4 1 1 delete existing: C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs 075932.000 4 1 1 current objVbsOrExeProcess (vbsrun) is null 075932.000 4 1 1 RunVBScriptFile [cscript][C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs][] timeout=60 (vbsPath=C:\Program Files\VoiceGuide\temp), start (new Process) 075932.000 4 1 1 objProcess.Start call 075932.000 4 1 1 objProcess.Start returned. handle=34060, id=2984, hash=5773521, starttime=1/21/2014 7:59:32 AM, HasExited=False 075932.000 4 1 1 VBScript started [C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs], handle=34060, VbsOrExeProcess.WorkingSet=[65536] Share this post Link to post
frankn Report post Posted 01/21/2014 08:20 PM It dies at Line 8 Char 1 Error 0x80131040 Code 80131040 source (null) Which is: set vg = CreateObject("vgServices.CommandLink") How can I confirm that this component is setup properly? Share this post Link to post
SupportTeam Report post Posted 01/22/2014 12:25 AM Can you please advise what version of Windows & Service Pack is used on this system. Is there anything else installed on this system apart from Windows + Dialogic Drivers + VoiceGuide ? Are there any Anti-virus / Anti-Malware / etc. type applications installed in this system? Also, have you had ever manually added any of the VoiceGuide DLLs into the "GAC"? 0x80131040 error means: "The located assembly's manifest definition does not match the assembly reference." Can you check if you have multiple copies of vgServices.dll present on your system (or loaded into GAC)? Share this post Link to post
frankn Report post Posted 01/22/2014 01:12 AM Windows XP Pro SP3 There is only MS Office 2007 installed along with Dialogic Drivers and VG There is no AV/AM app installed I never manually installed the VG DLLs into the GAC The only vgServices.dll is the one in C:\Program Files\Voiceguide How can I get the vgServices.dll added manually or automatic? Is there anyway we can setup a remote session, as I feel this back and forth could easily be resolved as I am far behind on completing this project? I can setup a gotomeeting? Thanks. Share this post Link to post
SupportTeam Report post Posted 01/22/2014 01:31 AM Have you only installed VoiceGuide once on this system or have you ran the VoiceGuide install more the once on this system? Can you please try fully reinstalling VoiceGuide. Please follow these steps: 1. Backup your scripts/sounds and config.xml files. 2. Stop VoiceGuide service. 3. Run UNINST.EXE in VoiceGuide directory (or uninstall from Control Panel) 4. Delete entire C:\Program Files\VoiceGuide directory. There is to be no VoiceGuide files left on hard disk. 5. Run VoiceGuide install. 6. Restore your scripts/sounds and config.xml files. 7. Reapply the license. This should ensure that you have the right vgServices.dll on your system You should not do any GAC addition etc. VoiceGuide .DLLs should not be placed in GAC. Share this post Link to post
frankn Report post Posted 01/22/2014 03:12 AM Problem fixed after installing 7.4.2 version. Thanks. Share this post Link to post