title: How to access global resources for localization in class library?
body: <p>I've got an asp.net website (not web application) and I have localized the text for the UI using resources files (.resx). I've also got a class library which contains the business logic and there's a validation method which returns an error message. I need to localise that error message but cannot find a way to get access to the global resource file in my website. On the website, say in a code behind, I can use Resources.LocalisedText.MyErrorMessage (where LocalisedText is the name of my resource file LocalisedText.resx). However in my class library, I cannot get a reference to it.</p>
  
  <p>I've found this link <a href="http://weblogs.asp.net/rinze/archive/2008/12/03/using-globalization-resources-resx-in-a-class-library-or-custom-control.aspx" rel="nofollow">http://weblogs.asp.net/rinze/archive/2008/12/03/using-globalization-resources-resx-in-a-class-library-or-custom-control.aspx</a> which says that it can be done but it doesn't seem to work for me probably because I cannot get the right namespace for the website?</p>