Results 1 to 3 of 3

Thread: unable to open the file - invalid resx file

  1. #1
    Join Date
    Oct 2008
    Posts
    116

    unable to open the file - invalid resx file

    I've been randomly getting this error on a few of my forms, this is happening in a class library DLL form that references a DataSet in the same assembly. If I exclude the form from the project, build the project,and the then include the form, open it up in the designer, then it started working again. Its always the same forms each time and its always in the same place, when i search for the file name it comes to an resx file, Any ideas why this is happening?

  2. #2
    Join Date
    Dec 2008
    Posts
    161

    Re: unable to open the file - invalid resx file

    With the resx file the compiler complained about but rather was to do with a resource in a custom control we'd developed. The control was an outlook style sidebar and they have been added some items to it in the control file itself which finally reference images etc. Have you try to build clean solution to it, it was about not updating new code into builds or using old dll builds. RESX files may have become corrupted since they're largely autogenerated. I suppose my copy of VS could be doing something to my local copies of the RESX files.

  3. #3
    Join Date
    Feb 2009
    Posts
    105

    Re: unable to open the file - invalid resx file

    The .resx resource file format consists of XML entries, which specify objects and strings inside XML tags. One advantage of a .resx file is that when opened with a text editor such as Notepad or Microsoft Word. A .resx file contains a standard set of header information, which describes the format of the resource entries and specifies the versioning information for the XML used to parse the data. If you need to retrieve the names and values of the resources in a .resx file, use a ResXResourceReader. You cannot embed a .resx file in a runtime executable or compile it into a satellite assembly. You must convert your .resx file into a .resources file using the Resource File Generator (Resgen.exe).

Similar Threads

  1. Unable to open AUP file in audacity
    By Tupper in forum Windows Software
    Replies: 4
    Last Post: 22-07-2011, 07:36 PM
  2. Replies: 6
    Last Post: 27-06-2011, 07:19 AM
  3. Replies: 4
    Last Post: 07-02-2011, 10:19 AM
  4. Unable to open JSP file on Windows 7
    By Disha N in forum Software Development
    Replies: 3
    Last Post: 23-01-2011, 07:04 PM
  5. Unable to open any exe file
    By NSA_CIA in forum Operating Systems
    Replies: 3
    Last Post: 26-06-2009, 09:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,045,503.55145 seconds with 17 queries