AppiumCommandExecutor: VTable failed, and 'Dispose' method lacks implementation
See original GitHub issueThe problem
After updating appium, node, and packages in visual studio I can no longer get the phone to connect.
Environment
Appium 1.7.2 java 1.8.0_162 node 5.8.0 samsung J3 (6.0.1) macOS and win10
Details
Occurs at the constructor for the device driver (line 230 of testLogic.cs)
Source code: appiumAndroidUnitTests.zip
macOS
===============
--Exception--
===============
4/10/2018 11:18:23 AM
appium-dotnet-driver, -2146233054
System.Collections.ListDictionaryInternal
VTable setup of type OpenQA.Selenium.Appium.Service.AppiumCommandExecutor failed
Void .ctor(Uri, ICapabilities)
at OpenQA.Selenium.Appium.AppiumDriver`1[W]..ctor (System.Uri remoteAddress, OpenQA.Selenium.ICapabilities desiredCapabilities) [0x00000] in <9b3ceeffa60d410090f33f3b9ea8ebde>:0
at OpenQA.Selenium.Appium.Android.AndroidDriver`1[W]..ctor (System.Uri remoteAddress, OpenQA.Selenium.Remote.DesiredCapabilities desiredCapabilities) [0x0000d] in <9b3ceeffa60d410090f33f3b9ea8ebde>:0
at appiumUnitTests.testLogic.runTests (appiumUnitTests.Program+device de) [0x00846] in /Users/sjaroch/Desktop/repos/appiumandroidunittestscsharp/appiumUnitTests/testLogic.cs:230
===================
--End exception--
===================
Windows
===============
--Exception--
===============
4/10/2018 11:20:26 AM
appium-dotnet-driver, -2146233054
System.Collections.ListDictionaryInternal
Method 'Dispose' in type 'OpenQA.Selenium.Appium.Service.AppiumCommandExecutor' from assembly 'appium-dotnet-driver, Version=3.0.0.2, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Void .ctor(System.Uri, OpenQA.Selenium.ICapabilities, System.TimeSpan)
at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities desiredCapabilities, TimeSpan commandTimeout)
at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Appium.Android.AndroidDriver`1..ctor(Uri remoteAddress, DesiredCapabilities desiredCapabilities)
at appiumUnitTests.testLogic.runTests(device de) in C:\Users\sjaroch\Desktop\android-test-lib\appiumAndroidUnitTests\appiumUnitTests\testLogic.cs:line 230
===================
--End exception--
===================
Issue Analytics
- State:
- Created 5 years ago
- Comments:36
Top Results From Across the Web
VTable failed, and 'Dispose' method lacks implementation · ...
The problem. After updating appium, node, and packages in visual studio I can no longer get the phone to connect.
Read more >AppiumCommandExecutor: VTable failed, and 'Dispose ...
AppiumCommandExecutor: VTable failed, and 'Dispose' method lacks implementation #10514 · The problem. After updating appium, node, and packages ...
Read more >Method 'Dispose' in type 'OpenQA.Selenium.Appium. ...
AppiumCommandExecutor ' from assembly 'appium-dotnet-driver, Version=3.0.0.2, ... PublicKeyToken=null' does not have an implementation.
Read more >Implement a Dispose method
In this article, learn to implement the Dispose method, which releases unmanaged resources used by your code in .NET.
Read more >Implement a DisposeAsync method
Learn how to implement DisposeAsync and DisposeAsyncCore methods to perform asynchronous resource cleanup.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The same issue with 3.13.0/3.13.1 selenium.Webdriver
Exception: Message: System.TypeLoadException : Method ‘Dispose’ in type ‘OpenQA.Selenium.Appium.Service.AppiumCommandExecutor’ from assembly ‘appium-dotnet-driver, Version=3.0.0.2, Culture=neutral, PublicKeyToken=null’ does not have an implementation.
I can confirm that this is breaking and 3.12.1 works