A quick tip when dealing with resources
A quick tip, this may already be well known around the community, when dealing with .resx files and namspaces.
Make sure that the default namespace for your Visual Studio project is the same as the class you are trying to access resources embedded in your .resx files from. We kept running into problems if the two were not the same in one of our custom web controls. It appears that when .NET puts your resources into the manifest of your Assembly, it associates them with the default namespace of the project somehow. (I’m not entirely sure how this is all accomplished. I’ll see if either I or my co-worker can hunt down someone at MS who can give me a better explanation.).
The error you will get is long and generic, something about how the resource could not be retrieved for the given culture. I’ve just re-imaged my work machine, once I finish installing everything I’ll replicate the error and the solution, posting the code and error message here.
-
Hermann Klinke
-
Hermann Klinke


