首页 > Web开发 > 详细

WSDL引用到.Net发生ListViewItem的错误

时间:2015-07-28 10:15:38      阅读:342      评论:0      收藏:0      [点我收藏+]

真是怪事,引用到.Net2013的时候出错了,好像其他版本没有这个问题,也不知道是不是这样。

SalesForce C# Integration ListViewRecordColumn Error

If you are trying to integrate SalesForce enterprise service with your c# application, and getting the arrow below, you are at right place.

{“Unable to generate a temporary class (result=1).\r\nerror CS0030: Cannot convert type ‘SalesForceEnterpriseService.ListViewRecordColumn[]’ to ‘SalesForceEnterpriseService.ListViewRecordColumn’\r\nerror CS0030: Cannot convert type ‘SalesForceEnterpriseService.ListViewRecordColumn[]’ to ‘SalesForceEnterpriseService.ListViewRecordColumn’\r\nerror CS0029: Cannot implicitly convert type ‘SalesForceEnterpriseService.ListViewRecordColumn’ to ‘SalesForceEnterpriseService.ListViewRecordColumn[]’\r\nerror CS0029: Cannot implicitly convert type ‘SalesForceEnterpriseService.ListViewRecordColumn’ to ‘SalesForceEnterpriseService.ListViewRecordColumn[]’\r\n”}

It’s a simple workaround here:

Just replace the lines in file “Reference.cs ”

private ListViewRecordColumn[][] recordsField;

replace it with:

private ListViewRecordColumn[] recordsField;

WSDL引用到.Net发生ListViewItem的错误

原文:http://www.cnblogs.com/dog2k/p/4681876.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!