Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

Hi Friends,

I solved this on my own, Right clicked on Servcice, select Configure service reference,then uncheck the Reuse types in referenced assemblies.

Now it seems perfect.I dont know this is a perfect solution for the problem but it seems perfect for mp application.

Thanks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900