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.



Next : how to use treeview in ASP.NET C#
Previous : For Loop OR DO While loop - how can i implement here to show productname
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages

Subscribe to Subscribers
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Talk to Webmaster Tony John

Online Members

Tony John
More...
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India