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

SystrayExtension: System.InvalidOperationException: The process has no package identity #60

Open
tjosten opened this issue Mar 6, 2018 · 7 comments

Comments

@tjosten
Copy link

tjosten commented Mar 6, 2018

Hi there,

the SystrayExtension-Sample does not seem to work. When deploying the solution and executing it, it successfully launches the WinForms tray icon application. However, when e.g. double clicking the tray icon to open the UWP application, it crashes with an exception:

System.InvalidOperationException: 'The process has no package identity. (Exception from HRESULT: 0x80073D54)'

Can you give me a hint on how to fix this? Haven't found anything useful yet.

@wickste
Copy link
Member

wickste commented Mar 6, 2018 via email

@tjosten
Copy link
Author

tjosten commented Mar 6, 2018

Hi there, thanks for the fast reply! I have deployed the app and am launching the Executable from the Release-folder. The same happens in my own application when launching the app via Visual Studio.

@wickste
Copy link
Member

wickste commented Mar 6, 2018 via email

@tjosten
Copy link
Author

tjosten commented Mar 6, 2018

Could you give me an example of how to do so? I'm sorry for asking but I am very new to Windows development, especially UWP. What would I need to do in order to run the Systray Example App (and use the double-click functionality on the Systray icon to open the UWP app)? Am I even able to deug both of the apps with Visual Studio simultaneously? Thanks very much!

@wickste
Copy link
Member

wickste commented Mar 6, 2018 via email

@tjosten
Copy link
Author

tjosten commented Mar 7, 2018

Hi Stefan,

thanks very much, installing the app from the Store did indeed work. One final question for now: Is there any chance to see this use case in action when executing from Visual Studio, e.g. for debugging purposes? I understand that in order to get rid of the exception, the application must be deployed by VS or installed from the Store, which makes it hard to debug, right?

Thanks again for your help.

@wickste
Copy link
Member

wickste commented Mar 7, 2018 via email

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