Showing posts with label ResXResourceReader. Show all posts
Showing posts with label ResXResourceReader. Show all posts

Tuesday, May 5, 2009

ResXResourceReader missing an assembly reference

Dear Reader,

In my web application when I try to read a Resource file (App_GlobalResources/Resource.resx) dynamically through C# code, I get the following message when the solution is built even though the assembly reference "using System.Resources;" is already added.

"The type or namespace name 'ResXResourceReader' does
not exist in the class or namespace 'System.Resources' (are you missing an
assembly reference?)"

The solution is we need to add a dll reference of System.Windows.Forms.dll to the application.

Hope it helps :)

Regards
Fauzi