question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppiumCommandExecutor: VTable failed, and 'Dispose' method lacks implementation

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Comments:36

github_iconTop GitHub Comments

6reactions
icvasacommented, Jul 5, 2018

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.

2reactions
forkicommented, Sep 18, 2018

I can confirm that this is breaking and 3.12.1 works

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found