Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WiniumLover opened this issue Jan 25, 2016 · 6 comments

Comments

@WiniumLover
Copy link

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

@NickAb
Copy link
Contributor

NickAb commented Feb 2, 2016

Could you please provide the driver log

@WiniumLover
Copy link
Author

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

@NickAb
Copy link
Contributor

NickAb commented Feb 9, 2016

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

@WiniumLover
Copy link
Author

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

@NickAb
Copy link
Contributor

NickAb commented Feb 9, 2016

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

@WiniumLover
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants