C
C#6mo ago
matcfs

✅ Huge problem with translation file and setup

Good morning at everyone. I apologize for this silly request but I have a big problem with a setup/build project. My project is an oldish .Net Framework 4.7 developed with WinForm but lately I had this request to translate in another language. After a brief research I found a good way to do it with resx. files that I move in Translations folder, and the program was perfect in Visual Studio! When I tried to compile setup file there was no error at all but my software crashes instantanealy if launched from Start Menu. I researched some workaround with no avail until now. Do you have some idea to how solve this issue? Thanks in advance.
5 Replies
canton7
canton76mo ago
Open the event viewer - windows logs - application and look for the two error entries when your application crashes One is useless, but the other has the stack trace and exception in it
matcfs
matcfs6mo ago
Thanks 🙏🏻 With this log I understand something that I didn't considerate until now.
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Resources.MissingManifestResourceException
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(System.String)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceSet>, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)
at System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Resources.MissingManifestResourceException
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(System.String)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceSet>, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)
at System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)
canton7
canton76mo ago
Did you deploy the satellite assemblies along with your main exe?
matcfs
matcfs6mo ago
Maybe, but I resolved with this: in the output project I added "localized resources" and now is all ok ^^
canton7
canton76mo ago
Glad to hear!