Winium.Mobile icon indicating copy to clipboard operation
Winium.Mobile copied to clipboard

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) when starting new session

Open naix86 opened this issue 7 years ago • 7 comments

Hi Guys,

I am facing with this issue when I run my sample unit test.

"value": {
    "error": "session not created",
    "stacktrace": "   at Winium.StoreApps.Driver.CommandExecutors.NewSessionExecutor.DoImpl() in d:\\Projects\\windows-universal-app-driver\\Winium\\Winium.StoreApps.Driver\\CommandExecutors\\NewSessionExecutor.cs:line 38\r\n   at Winium.StoreApps.Driver.CommandExecutors.CommandExecutorBase.Do() in d:\\Projects\\windows-universal-app-driver\\Winium\\Winium.StoreApps.Driver\\CommandExecutors\\CommandExecutorBase.cs:line 42",
    "message": "The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"
  }
}

Any idea why this happened?

naix86 avatar Jul 18 '16 09:07 naix86

Can you provide logs written by Winium.StoreApps.Driver.exe? It is recommended to run Winium.StoreApps.Driver.exe with --verbose option, so that you get more logs.

Without logs it is hard to diagnose it but this is unusual exception. Try restarting emulator that you run tests on.

NickAb avatar Jul 18 '16 14:07 NickAb

Hi Nick,

I got it working finally.

Btw, how can i run two [Test] in a single CS script?

When I try to run two [Test], one of them will just have an error saying "InvalidOperationException: The application is already installed, or update or uninstall is running" etc.

naix86 avatar Jul 18 '16 14:07 naix86

I will need some code sample to tell if there is any problem. But in general you can have a single .cs file with single test class that have a bunch of test methods in it, see https://github.com/2gis/Winium.StoreApps/blob/master/Winium/TestApp.Test/Samples/TestSamples.cs for example.

NickAb avatar Jul 24 '16 14:07 NickAb

@naix86 have my answer resolved you question? If so i would like to close the issue.

NickAb avatar Jul 27 '16 14:07 NickAb

HI Nick,

I can't get winium to run everytime. average to be like 1 out 10 success. I keep getting the same thing

"message": "The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"

Please help

naix86 avatar Aug 02 '16 21:08 naix86

Could you please try running tests and emulators on another machine? This problem might be related to hardware or software setup.

NickAb avatar Aug 03 '16 01:08 NickAb

@naix86 does the issues persist on different hardware?

NickAb avatar Feb 24 '17 02:02 NickAb