Cannot convert type data[] to data or data to data[] C# (Other solution)

by November 16, 2015 0 comments
As this post I find out the way to handle this error by edit the file that was generated from xml file. It worked fine but when I decide to deploy project, this error happen again. So now I find out a solution to solve this:


  <xsd:complextype name="QuickActionLayoutColumn"> <xsd:sequence>
     <xsd:element name="quickActionLayoutItems" minOccurs="0" maxOccurs="unbounded" type="tns:QuickActionLayoutItem"/>
  </xsd:sequence>
</xsd:complexType>
The workaround was to inject a dummy attribute into the WSDL to bypass the bug.
<xsd:complexType name="QuickActionLayoutColumn">
  <xsd:sequence>
     <xsd:element name="quickActionLayoutItems" minOccurs="0" maxOccurs="unbounded" type="tns:QuickActionLayoutItem"/>
  </xsd:sequence>
  <xsd:attribute name="tmp" type="xsd:string" />
</xsd:complexType>

An Nguyen

Developer

Sharing daily exciting lesson learned and posts about .NET, SQL Server, HTML, Javascript - jQuery, CSS - Bootstrap, SalesForce CRM, Kentico CMS and so on.

0 comments :

Post a Comment