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

真是怪事,引用到.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;

posted @ 2015-07-28 09:31  dog2k_sf  阅读(247)  评论(0)    收藏  举报