Forums » .NET » .NET »

Error : Invalid Resx file


Posted Date: 07 Nov 2007      Posted By:: Hariharan.R     Member Level: Bronze  Member Rank: 0     Points: 2   Responses: 0

Assembly assembly = Assembly.GetExecutingAssembly();
ResourceManager rm = new ResourceManager("NameSpace.Demo", assembly, null);
try
{
logo.Image = (Image)rm.GetObject("WroxLogo");
textTitle.Text = rm.GetString("Title");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}

Hi, I created a Demo.resx and I included it to my project, when I try to compile it showing.
Error :Invalid Resx file. Invalid character in the given encoding. Line 1, position 1. <File Path>\Demo.resx
Can any one explain why this error is occurring and how to rectify it?

Front-end : C# 2005


Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply     

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.





  • Return to Discussion Forum
  • Start new thread


  • Subscribe to Subscribers
    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John

    Online Members

    Moe
    More...
     
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India

    
    
    
    

    Click the "Follow" button above to follow Tony John