Error : Invalid Resx file

csharp , xml India
  • 13 years ago
    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

  • 13 years ago
    could u paste t xml format of t resource file. i think there would b some flaw in t file

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Walking on water and developing software from a specification are easy if both are frozen.” - Edward V Berard