The Resx file is invalid and could not be loaded. Types used in RESX files

Source: Internet
Author: User

Error message Tip:

The error 339Resx file is invalid. Failed to load. RESX files are used in Types Forms.listitems, Forms, version=1.0.0.0, Culture=neutral, Publickeytoken=null. Make sure that you have added the required references in your project. Line 136th, position 5.         E:\forms\form2.resx1365forms<?xml version= "1.0" encoding= "Utf-8"?><root> <!--Microsoft ResX Schema Version 2.0 The primary goals of this format are to allow a simple XML format, which is mostly human readabl  E. The generation and parsing of the various data types is done through the TypeConverter classes associated with        The data types. Example: Ado.net/xml Headers & Schema ... <resheader name= "Resmimetype" >text/microsoft-resx</re sheader> <resheader name= "version" >2.0</resheader> <resheader name= "Reader" > System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name= "Writer" > System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name= "Name1" >< Value>this Is my long string</value><comment>this is a comment</comment></data> <data name= "Color1" Ty Pe= "System.Drawing.Color, System.Drawing" >Blue</data> <data name= "Bitmap1" mimetype= "application/ X-microsoft.net.object.binary.base64 "> <value>[base64 MIME encoded serialized. NET Framework object]</v alue> </data> <data name= "Icon1" type= "System.Drawing.Icon, System.Drawing" mimetype= "APPLICATION/X-MICR Osoft.net.object.bytearray.base64 "> <value>[base64 MIME encoded string representing a byte array form of T                    The He. NET Framework object]</value> <comment>this is a comment</comment> </data>        There is any number of "resheader" rows, contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a. NET class, support text/value conversion through the TypecoNverter architecture.        Classes This is serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader what to depersist the object. This is currently not extensible. For a given mimetype the value must being set ACCORDINGLY:NOTE-APPLICATION/X-MICROSOFT.NET.OBJECT.BINARY.BASE64 is         The format that the ResXResourceWriter would generate, however the reader can read any of the formats listed below.             Mimetype:application/x-microsoft.net.object.binary.base64 Value:the object must is serialized with        : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:and then encoded with base64 encoding.             Mimetype:application/x-microsoft.net.object.soap.base64 Value:the object must is serialized with    : System.Runtime.Serialization.Formatters.Soap.SoapFormatter:and then encoded with base64 encoding. MimetYpe:application/x-microsoft.net.object.bytearray.base64 Value:the object must is serialized into a byte array    : Using a System.ComponentModel.TypeConverter:and then encoded with base64 encoding. --<xsd:schema id= "root" xmlns= "xmlns:xsd=" Http://www.w3.org/2001/XMLSchema "xmlns:msdata=" urn: Schemas-microsoft-com:xml-msdata "> <xsd:import namespace=" http://www.w3.org/XML/1998/namespace "/> < Xsd:element name= "root" msdata:isdataset= "true" > <xsd:complexType> <xsd:choice maxoccurs= "Unbounde                D "> <xsd:element name=" metadata "> <xsd:complexType> <xsd:sequence>              <xsd:element name= "value" type= "xsd:string" minoccurs= "0"/> </xsd:sequence> <xsd:attribute name= "name" use= "required" type= "xsd:string"/> <xsd:attribute name= "type" Typ E= "xsd:string"/> <xsd:attribute name= "MimeType "type=" xsd:string "/> <xsd:attribute ref=" Xml:space "/> </xsd:complexType>              </xsd:element> <xsd:element name= "assembly" > <xsd:complexType> <xsd:attribute name= "Alias" type= "xsd:string"/> <xsd:attribute name= "name" type= "Xsd:string"/&gt            ; </xsd:complexType> </xsd:element> <xsd:element name= "Data" > <xsd:complex type> <xsd:sequence> <xsd:element name= "value" type= "xsd:string" minoccurs= "0" MSD ata:ordinal= "1"/> <xsd:element name= "comment" type= "xsd:string" minoccurs= "0" msdata:ordinal= "2"/&G              T               </xsd:sequence> <xsd:attribute name= "name" type= "xsd:string" use= "required" msdata:ordinal= "1"/> <xsd:attribute name= "type" type= "Xsd:string" msdata:ordinal= "3"/> <xsd:attribute Name= "MimeType" type= "xsd:string" msdata:ordinal= "4"/> <xsd:attribute ref= "Xml:space"/> </xsd:complexType> </xsd:element> <xsd:element name= "Resheader" > <xsd: complextype> <xsd:sequence> <xsd:element name= "value" type= "xsd:string" minoccurs= "0" msdata:ordinal= "1"/> </xsd:sequence> <xsd:attribute name= "name" type= "Xsd:strin      G "use=" required "/> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name= "Resmimetype" > &LT;VALUE&G t;text/microsoft-resx</value> </resheader> <resheader name= "version" > <value>2.0</value > </resheader> <resheader name= "Reader" > <value>system.resources.resxresourcereader, System.Windows.Forms, version=4.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089</value> </resheader> <resheader name= "Writer" > & Lt;value>system.resources.resxresourcewriter, System.Windows.Forms, version=4.0.0.0, Culture=neutral, Publickeytoken=b77a5c561934e089</value> </resheader></root>

Solution:

Will. The one in the ResX file <data......></data> delete it.

The Resx file is invalid and could not be loaded. Types used in RESX files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.