Previous Topic: Consistency Check MessagesNext Topic: Rebuilding the Error Messages


Runtime Error Messages

CA Gen ASP.NET Runtime provides messages that notify the user of a runtime error condition. The messages are stored in the assembly CA.Gen.localizationrt.dll and its satellite assemblies, CA.Gen.localizationrt.resources.dll, in the folder named with the specific locale for the satellite assembly. The assembly CA.Gen.localizationrt.dll contains the default English error messages, which are also used as the fall back resource when there is no localized message for the particular locale. The locale-specific error messages assembly CA.Gen.localizationrt.resources.dll contains the localized error messages for the specific locale. For example, CA.Gen.localizationrt.resources.dll in the %GENxx%Gen\.net\bin\es folder provides the Spanish localized error message.

CA Gen ASP.NET Runtime Error messages can be customized by recompiling the source files that are provided in the CA Gen installation. The source files are located in the %GENxx%Gen\.net\localization folder with the following file and folder structure:

%GENxx%Gen\.net\localization
 |-resources\:
 |   |-abrtmessages.es.txt
 |   |-abrtmessages.txt
 |   |-aspxmessages.ar.txt
 |   |-aspxmessages.da.txt
 |   |-aspxmessages.de.txt
 |   |-aspxmessages.es.txt
 |   |-aspxmessages.fi.txt
 |   |-aspxmessages.fr.txt
 |   |-aspxmessages.he.txt
 |   |-aspxmessages.it.txt
 |   |-aspxmessages.ja.txt
 |   |-aspxmessages.ko.txt
 |   |-aspxmessages.nl.txt
 |   |-aspxmessages.no.txt
 |   |-aspxmessages.sv.txt
 |   |-aspxmessages.txt
 |   |-csumessages.ar.txt
 |   |-csumessages.da.txt
 |   |-csumessages.de.txt
 |   |-csumessages.es.txt
 |   |-csumessages.fi.txt
 |   |-csumessages.fr.txt
 |   |-csumessages.he.txt
 |   |-csumessages.it.txt
 |   |-csumessages.ja.txt
 |   |-csumessages.ko.txt
 |   |-csumessages.nl.txt
 |   |-csumessages.no.txt
 |   |-csumessages.sv.txt
 |   |-csumessages.txt
 |   |-fmrtmessages.txt
 |   |-wfrtmessages.es.txt
 |   |-wfrtmessages.txt
 |   `-wmrtmessages.txt
 |-src\:
 |   |-AssemblyInfo.cs
 |   `-MessageBundle.cs
 |-localizationrt.snk
 `-make.bat

The TXT files in the resources folder contain the default and localized messages, and can be customized. The two C# source files in the src folder provide the assembly version information and the interface to be used by the ASP.NET runtimes to retrieve messages.