Exception on line 89 in Syswaiter.cs
We are getting this exception on any vbs sample script on windows 2003 sp 2
Has anyone had this issue themselves?
Same problem here
After some testing I found the problem is related to Terminal Services, in my case I'm trying to use seleniumbasic from vba code on an access database, but is only working for one user at the time, once one user/session uses it, it would throw the Exception on line 89 to all other sessions, once the first session closes it, then another session can use it.
I was able to solve the problem by editing the following line in syswaiter.cs: _signal_interrupt = new EventWaitHandle(false, EventResetMode.ManualReset, @"Global\InterruptKey" + Environment.UserName, out createdNew, security); the problem was caused by the "Global\InterruptKey" which is shared among different user sessions, by adding the name of the user they become unique for each user...
Thanks jparrotta this solved our problem also. Much appreciated. I'll leave this open so hopefully the contributors can change the code base to fix this issue for everyone.
Plz help me , how do you guys rebuild it ? Can u guys send-me the Selenium.EXE ? i tried using all the programs listed on build-setup.py but i couldnt do it
I made the changes and recompiled it successfully. Simply replace all the files in the zip file in the Seleniumbasic (C:\ProgramFiles\SeleniumBasic usually) folder and then register the new dll using regasm (run attached bat file using cmd as administrator). seleniumbasic working both users.zip
Chromedriver has been updated in the zip file to latest version 76. Use with Chrome version 76, Or update chromedriver to match the version of chrome you intend to use.
Enjoy !
This solution is not working for me.
@sgreeneAmfam , What problem are you facing ?
We are using SeleniumBasic in MS Access and Excel VBA. We have several users on the same server. When a user is already running SeleniumBasic VBA on a server, any other user will get the error above (Exception on line 89 in Syswaiter.cs)
I tried running the batch file attached above, but it did not resolve the issue.
Did you replace the files in the SeleniumBasic folder as well ? Also try running the batch file as an administrator.
Thank you so much, it seems to be working now.