Application window doesn't open after packaging #473

Closed
opened 2026-01-29 16:40:37 +00:00 by claunia · 11 comments
Owner

Originally created by @eqap-melvinr on GitHub (Apr 2, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version: 7.30.2

.NET Core 3.1

  • Target: Windows

The command prompt window opens but the application doesn't.

Steps to Reproduce:

  1. Build using electronize build /target win
  2. Run the exe
Originally created by @eqap-melvinr on GitHub (Apr 2, 2020). Originally assigned to: @GregorBiswanger on GitHub. <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: 7.30.2 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> .NET Core 3.1 <!-- What target are you building for? --> * **Target**: Windows <!-- Enter your issue details below this comment. --> The command prompt window opens but the application doesn't. <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: 1. Build using electronize build /target win 2. Run the exe
claunia added the bug label 2026-01-29 16:40:37 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Apr 17, 2020):

Can you provide me your application with source code if necessary?

The current version works without problems for us.

@GregorBiswanger commented on GitHub (Apr 17, 2020): Can you provide me your application with source code if necessary? The current version works without problems for us.
Author
Owner

@ipax77 commented on GitHub (May 4, 2020):

Some users of my app do have the same problem – it is stuck at:

Electron Socket IO Port: 8000
Electron Socket started on port 8000 at 127.0.0.1
ASP.NET Core Port: 8001

On my Desktop and a virtual machine it is working fine, but I was able to repoduce it on my laptop (all (Win10 64)

The code is available here here
but I have the same result (desktop/virtual machine ok, laptop nok) with a clean asp dotnet core blazor app using
ElectronNET.API & ElectronNET.CLI Version 8.31.1
electron-builder Version 22.6.0 using electronize build /target win
dotnet Version3.1.201

I reverted back to ElectronNET.API & ElectronNET.CLI Version 7.30.2 and it is working as expected on my laptop.

@ipax77 commented on GitHub (May 4, 2020): Some users of my app do have the same problem – it is stuck at: ``` Electron Socket IO Port: 8000 Electron Socket started on port 8000 at 127.0.0.1 ASP.NET Core Port: 8001 ``` On my Desktop and a virtual machine it is working fine, but I was able to repoduce it on my laptop (all (Win10 64) The code is available here [here](https://github.com/ipax77/sc2dsstats/tree/master/sc2dsstats.desktop) but I have the same result (desktop/virtual machine ok, laptop nok) with a clean asp dotnet core blazor app using ElectronNET.API & ElectronNET.CLI Version 8.31.1 electron-builder Version 22.6.0 using electronize build /target win dotnet Version3.1.201 I reverted back to ElectronNET.API & ElectronNET.CLI Version 7.30.2 and it is working as expected on my laptop.
Author
Owner

@drozdzamadeusz commented on GitHub (May 8, 2020):

Any updates on this issue? A have exactly the same problem, after upgrade to version 8 program starts normally only on my desktop, on any other computer electron crashes/freezes on splash screen.

@drozdzamadeusz commented on GitHub (May 8, 2020): Any updates on this issue? A have exactly the same problem, after upgrade to version 8 program starts normally only on my desktop, on any other computer electron crashes/freezes on splash screen.
Author
Owner

@GregorBiswanger commented on GitHub (May 8, 2020):

@ipax77 I try to start your project with VS2019 and get an error:
image

@drozdzamadeusz can you provide me with your project or can you reproduce it please?

@GregorBiswanger commented on GitHub (May 8, 2020): @ipax77 I try to start your project with VS2019 and get an error: ![image](https://user-images.githubusercontent.com/7336300/81437416-6c234380-916b-11ea-933a-39b9da07e2b7.png) @drozdzamadeusz can you provide me with your project or can you reproduce it please?
Author
Owner

@GregorBiswanger commented on GitHub (May 8, 2020):

@ipax77 FYI
image

@GregorBiswanger commented on GitHub (May 8, 2020): @ipax77 FYI ![image](https://user-images.githubusercontent.com/7336300/81437549-a1c82c80-916b-11ea-9c05-8104b863dc43.png)
Author
Owner

@ipax77 commented on GitHub (May 8, 2020):

@GregorBiswanger fixed the sln file, sry.
I was able to reproduce it with the clean sample dotnet core blazor project, too (with counter and weatherforcast).

@ipax77 commented on GitHub (May 8, 2020): @GregorBiswanger fixed the sln file, sry. I was able to reproduce it with the clean sample dotnet core blazor project, too (with counter and weatherforcast).
Author
Owner

@drozdzamadeusz commented on GitHub (May 9, 2020):

@GregorBiswanger yes of course, here is source of my project: https://github.com/drozdzamadeusz/talker-app

@drozdzamadeusz commented on GitHub (May 9, 2020): @GregorBiswanger yes of course, here is source of my project: https://github.com/drozdzamadeusz/talker-app
Author
Owner

@drozdzamadeusz commented on GitHub (May 9, 2020):

@GregorBiswanger I figured out that to run application every user has to have NET Core 3.1 SDK installed. I have no idea why this situation occurs, before update to 8.31.1 application started normally on computers without NET SDK installed.

@drozdzamadeusz commented on GitHub (May 9, 2020): @GregorBiswanger I figured out that to run application every user has to have NET Core 3.1 SDK installed. I have no idea why this situation occurs, before update to 8.31.1 application started normally on computers without NET SDK installed.
Author
Owner

@GregorBiswanger commented on GitHub (May 9, 2020):

@ipax77 I think @drozdzamadeusz is right here.. it is no longer produced as self contained.. I can't say where that comes from... that must have slipped in with a pull request.. I will change and test it locally.. if then everything works, it will be released immediately for update 8.31.2.

image

@GregorBiswanger commented on GitHub (May 9, 2020): @ipax77 I think @drozdzamadeusz is right here.. it is no longer produced as self contained.. I can't say where that comes from... that must have slipped in with a pull request.. I will change and test it locally.. if then everything works, it will be released immediately for update 8.31.2. ![image](https://user-images.githubusercontent.com/7336300/81482573-4fa10d00-9238-11ea-9753-7f9db38a69d7.png)
Author
Owner

@GregorBiswanger commented on GitHub (May 9, 2020):

Okay, will be fixed with Electron.NET 8.31.2...

image

@GregorBiswanger commented on GitHub (May 9, 2020): Okay, will be fixed with Electron.NET 8.31.2... ![image](https://user-images.githubusercontent.com/7336300/81484357-25098100-9245-11ea-84e3-6273fb978723.png)
Author
Owner

@GregorBiswanger commented on GitHub (May 9, 2020):

Fixed and will be available with update 8.31.2.

@GregorBiswanger commented on GitHub (May 9, 2020): Fixed and will be available with update 8.31.2.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#473