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

3 comments:

ahmed said...

Thanks Alot for your help,
Gazak Allah 3ana 5ar

Ahmed Abd-elwahab
Developer

sohel said...

Thanks....

Anonymous said...

Thanks Buddy !