Electronize startup exception. #702

Closed
opened 2026-01-29 16:46:16 +00:00 by claunia · 12 comments
Owner

Originally created by @MichielArkema on GitHub (Sep 13, 2021).

Originally assigned to: @GregorBiswanger on GitHub.

For starters, the installation did not bring the manifest json nor the about@2x.png image.

After fixing those issues I stumbled upon a new one when executing the electronize start command.

Error:

image

Hopefully someone is able to help me.

Originally created by @MichielArkema on GitHub (Sep 13, 2021). Originally assigned to: @GregorBiswanger on GitHub. For starters, the installation did not bring the manifest json nor the about@2x.png image. After fixing those issues I stumbled upon a new one when executing the electronize start command. Error: ![image](https://user-images.githubusercontent.com/53873421/133069254-15cf86ff-b316-4698-89bd-6fed32ef2fd5.png) Hopefully someone is able to help me.
claunia added the bug label 2026-01-29 16:46:16 +00:00
Author
Owner

@NicolasEhrhard commented on GitHub (Sep 13, 2021):

Same probleme here #602 . Hope someone has already resolved this

@NicolasEhrhard commented on GitHub (Sep 13, 2021): Same probleme here #602 . Hope someone has already resolved this
Author
Owner

@MichielArkema commented on GitHub (Sep 15, 2021):

Same probleme here #602 . Hope someone has already resolved this

Unfortunately I haven't been able to fix it yet. It seems like a problem with the installation process in Electron.NET

@MichielArkema commented on GitHub (Sep 15, 2021): > Same probleme here #602 . Hope someone has already resolved this Unfortunately I haven't been able to fix it yet. It seems like a problem with the installation process in Electron.NET
Author
Owner

@towerbit commented on GitHub (Sep 17, 2021):

Rename your project, remove any dot in it.

@towerbit commented on GitHub (Sep 17, 2021): Rename your project, remove any dot in it.
Author
Owner

@Somfic commented on GitHub (Sep 19, 2021):

Having this error when doing electronize start, project works fine when using electronize start /watch :/

@Somfic commented on GitHub (Sep 19, 2021): Having this error when doing `electronize start`, project works fine when using `electronize start /watch` :/
Author
Owner

@schaveyt commented on GitHub (Oct 18, 2021):

With .net6 rc2, I also has to set my electron.manifest.json environemnt to Development rather than Production in order for the static assets to not report a 404.

@schaveyt commented on GitHub (Oct 18, 2021): With .net6 rc2, I also has to set my electron.manifest.json environemnt to `Development` rather than Production in order for the static assets to not report a 404.
Author
Owner

@serdar-sahin commented on GitHub (Oct 26, 2021):

In electron.manifest the executable, name, productname fields must be the same.

@serdar-sahin commented on GitHub (Oct 26, 2021): In electron.manifest the executable, name, productname fields must be the same.
Author
Owner

@ggomarighetti commented on GitHub (Nov 26, 2021):

I found the solution.

What you need is to change the configuration of the project, that error gives it to you because Electronize what it is to use the already compiled project.

To solve this you have to go to your project (Example: Client), right click and look where it says Properties, then, you go to Application -> General -> Assembly name, you should see something like "$ (MSBuildProjectName)" , there you change it to be the same one you entered in electron.manifest.json

@ggomarighetti commented on GitHub (Nov 26, 2021): I found the solution. What you need is to change the configuration of the project, that error gives it to you because Electronize what it is to use the already compiled project. To solve this you have to go to your project (Example: Client), right click and look where it says Properties, then, you go to Application -> General -> Assembly name, you should see something like "$ (MSBuildProjectName)" , there you change it to be the same one you entered in electron.manifest.json
Author
Owner

@danatcofo commented on GitHub (Dec 7, 2021):

@MichielArkema if @ggomarighetti 's solution fixes your problem can you close this ticket please?

@danatcofo commented on GitHub (Dec 7, 2021): @MichielArkema if @ggomarighetti 's solution fixes your problem can you close this ticket please?
Author
Owner

@peter-bozovic commented on GitHub (May 10, 2022):

Check the output folder of the build: Desktop\win-unpacked\resources\bin
Check the .exe file that you have there, and make sure you have the same name in the electron.manifest.json under "executable":"..."

@peter-bozovic commented on GitHub (May 10, 2022): Check the output folder of the build: `Desktop\win-unpacked\resources\bin` Check the `.exe` file that you have there, and make sure you have the same name in the `electron.manifest.json` under `"executable":"..."`
Author
Owner

@mcrio commented on GitHub (Jun 26, 2022):

To solve this you have to go to your project (Example: Client), right click and look where it says Properties, then, you go to Application -> General -> Assembly name, you should see something like "$ (MSBuildProjectName)" , there you change it to be the same one you entered in electron.manifest.json

This could be part of the docs. @ggomarighetti I could file a PR but don't want to take all the fame you deserve :)

@mcrio commented on GitHub (Jun 26, 2022): > To solve this you have to go to your project (Example: Client), right click and look where it says Properties, then, you go to Application -> General -> Assembly name, you should see something like "$ (MSBuildProjectName)" , there you change it to be the same one you entered in electron.manifest.json This could be part of the docs. @ggomarighetti I could file a PR but don't want to take all the fame you deserve :)
Author
Owner

@damikun commented on GitHub (Aug 26, 2022):

For people who are searching for solution... Please make sure the "executable": "YourNamespaeName", (from electron.manifest.json) match the <AssemblyName>YourNamespaeName</AssemblyName> from your .csproj file...

Also make sure that you dont use whitespaces and characters as -,/.... there because electron removes it and than app does not know what exe file to run because the name executable is different from defined in manifest...

Your executable can be find under obj/host/bin it ends with .exe

@damikun commented on GitHub (Aug 26, 2022): For people who are searching for solution... Please make sure the ` "executable": "YourNamespaeName",` (from `electron.manifest.json`) match the `<AssemblyName>YourNamespaeName</AssemblyName>` from your `.csproj` file... Also make sure that you dont use whitespaces and characters as `-,/....` there because electron removes it and than app does not know what `exe` file to run because the name executable is different from defined in manifest... Your executable can be find under `obj/host/bin` it ends with `.exe`
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#702