码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2015-07-28 10:17:41      阅读:178      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!