Electron.net: Application window doesn't open after packaging

Created on 2 Apr 2020  Â·  11Comments  Â·  Source: ElectronNET/Electron.NET


  • 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
bug

Most helpful comment

@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

All 11 comments

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

The current version works without problems for us.

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.

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.

@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?

@ipax77 FYI
image

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

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

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

@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

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

image

Fixed and will be available with update 8.31.2.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Marcelh1983 picture Marcelh1983  Â·  5Comments

cdespinosaagmx picture cdespinosaagmx  Â·  3Comments

seanmars picture seanmars  Â·  5Comments

iqmeta picture iqmeta  Â·  3Comments

yoDon picture yoDon  Â·  4Comments