CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2010
    Posts
    2

    Winres error opening simple form

    I want to use winres to edit a windows form application for internationalization. I made a simple test form containing just a button and I set "Localizable" to true (VS 2010/.Net 4). When I try to open the Form1.resx with winres, I get the error below. I must have some incorrect setting to have such a major problem with a trivial form?

    Error - Failed to load the resource due to the following error:
    System.ArgumentException: ResX file Type System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in the data at line 121, position 4 cannot be located. Line 123, position 5. cannot be parsed. ---> System.Xml.XmlException: Type System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in the data at line 121, position 4 cannot be located. Line 123, position 5. ---> System.TypeLoadException: Type System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in the data at line 121, position 4 cannot be located. ---> System.Xml.XmlException: Type System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in the data at line 121, position 4 cannot be located. Line 121, position 4.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Winres error opening simple form

    No Net 4.0 ?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Nov 2010
    Posts
    2

    Re: Winres error opening simple form

    Quote Originally Posted by dglienna View Post
    No Net 4.0 ?
    Yes, I am using Net 4.0. There are numerous other lines in the resx file containing "Version=4.0.0.0" which seem to be ok.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured