How to Fix Missing Manifest Resource Exception in C#

I am currently developing an application that I know would be better if I support multi language. And while doing so encountered the above problem.

Solution:

In your application (whatever it is web, mobile, desktop) take note of where you are saving the .resx file.

By this I mean the namespace, example:

You have an application HelloWorld, and you save the .resx file in the root directory.

+HelloWorld
+yourresource.resx

So, when you access the resource you should call it by:


ResourceManager rm = new ResourceManager("HelloWorld.yourresource", System.Reflection.Assembly.GetExecutingAssembly());


This is for the default language, you will just have to create subdirectory for your locale example en-us, etc.

0 Comments

Post a Comment

Post a Comment (0)

Previous Post Next Post
NERV Open Source

Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.

Explore NERV on GitHub →