本文介绍了WCF转换错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

无法将类型"ServiceProxy.TrainingTrackerService.SelectListItem []"转换为"System.Collections.Generic.List< system.web.mvc.selectlistitem>"

正在从WCF到返回类型为List< SelectListItem>
的ServiceProxy层调用方法由于我正在使用List< SelectListItem>在所有这些层中.
生成时会在ServiceProxy层中引发错误.
我应该如何转换此数据类型,以克服此错误?

请在这方面帮助我

谢谢&问候,
R.K.

Hi Friends,

Cannot convert type ''ServiceProxy.TrainingTrackerService.SelectListItem[]'' to ''System.Collections.Generic.List<system.web.mvc.selectlistitem>''

Am calling a method from WCF to ServiceProxy layer with return type List<SelectListItem>
Since Am using List<SelectListItem> in all these layers.
It throws error in ServiceProxy layer while building.
How should I convert this datatype, overcome this error?

Please help me in this regards

Thanks & Regards,
R.K.

推荐答案



这篇关于WCF转换错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 22:55