Winium.Mobile
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
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
Could you please provide the driver log
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...
If you are using Visual Studio, make sure that there are no notifications regarding license
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.
Ok. This was just a guess as I had similar problem due to developer license expiration. Will need to look into this.
Sure @NickAb , when I was debugging found that the issue happened when the framework try to install a file in package "Dependencies" folder.