When you're using RIA services you may have already come across the possibility to use data annotations to enrich entities exposed by your RIA service to modify the way fields are rendered an validated. One of the things that's supported is the use of resources to make error messages and other string literals localizable. In this post I will show you a handy trick to make working with resources to format your error messages a breeze.<!--more--> <h2>Setting up the project for resources</h2> Before you can start creating localized error messages you need a location to store those messages. For regular .NET projects this means adding a resource file to the project. For RIA services it means you have to do a little more.
First let's add a new resource file to the server project.