Here's my scenario:
I have a .Net (3.5) DLL being referenced by an ASP.Net web application.
One of the classes in the DLL has a .resx file containing an error message string that ultimately gets shown by the calling .aspx page.
The DLL makes use of multiple namespaces, I've set the .resx file to the same namespace as the class that calls it, and the .resx file has the same folder location and filename as the class that uses is, postfixed with 'Resources': i.e.
Class: ClassName.cs
.resx: ClassNameResources.resx
It reads the .resx string (which is compiled in the DLL as an embedded resource) without issue.
The problem I'm having is trying to replace the error message string in the deployed web application - how do I actually do it?
Can you point me at a guide? - the best I've found so far is this one, which says use regen.exe
and al.exe
, but the resulting .resources
file doesn't get used because the error message doesn't change. At this stage I'm not trying to localize for any culture, I'm trying to modify the strings returned for the default culture.
Thanks for any suggestions you can make :o)