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

"System.InvalidOperationException : To install this application you need either a Windows developer license or a sideloading-enabled system." when deploying Release builds

Open WiniumLover opened this issue 8 years ago • 6 comments

Hi, I have noticed the below issue when I try to deploy universal app with release build through winium framework but the same issue is not appearing when I deploy universal app with Debug build. I have enabled Sideload apps settings in host system (Windows 10) and enabled developer settings in emulator.

Issue: "System.InvalidOperationException : To install this application you need either a Windows developer license or a sideloading-enabled system." when deploying Release builds

WiniumLover avatar Jan 25 '16 07:01 WiniumLover

Could you please provide the driver log

NickAb avatar Feb 02 '16 02:02 NickAb

Hi @NickAb , sorry for the late response. Please find the driver logs below.

14:04:12 [INFO] COMMAND newSession { "desiredCapabilities": { "app": "C:\BuildDir\Sample_1.0.14.0_Test\Sample_1.0.14.0_x86.appxbundle", "platform": "WINDOWS" } } 14:04:12 [INFO] Target emulator: 'Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB' 14:04:12 [WARN] Device was found using partail deviceName '', this behavior might be deprecated in favor of specifying strict deviceName or platformVersion (when implemented). 14:04:13 [DEBUG] RESPONSE: OK: { "sessionId": "de1217e9-f0ad-4f21-bfff-a3d347026b6f", "status": 33, "value": { "error": "session not created", "stacktrace": " at Winium.StoreApps.Driver.CommandExecutors.NewSessionExecutor.DoImpl() in C:\Prabhu\Winium.StoreApps-1.6.0\Winium\Winium.StoreApps.Driver\CommandExecutors\NewSessionExecutor.cs:line 38\r\n at Winium.StoreApps.Driver.CommandExecutors.CommandExecutorBase.Do() in C:\Prabhu\Winium.StoreApps-1.6.0\Winium\Winium.StoreApps.Driver\CommandExecutors\CommandExecutorBase.cs:line 42", "message": "To install this application you need either a Windows developer license or a sideloading-enabled system.\r\n" } } 14:04:13 [DEBUG] Client closed

14:04:13 [DEBUG] Waiting for a connection...

WiniumLover avatar Feb 08 '16 08:02 WiniumLover

If you are using Visual Studio, make sure that there are no notifications regarding license 8510 image_5a85278c

NickAb avatar Feb 09 '16 02:02 NickAb

thanks @NickAb for the reply. I haven't seen such notifications in my Community edition of 2015 Visual Studio. Below is the notification at my side.

vs_notifications

WiniumLover avatar Feb 09 '16 03:02 WiniumLover

Ok. This was just a guess as I had similar problem due to developer license expiration. Will need to look into this.

NickAb avatar Feb 09 '16 04:02 NickAb

Sure @NickAb , when I was debugging found that the issue happened when the framework try to install a file in package "Dependencies" folder.

WiniumLover avatar Feb 09 '16 05:02 WiniumLover