VS.NET: Cannot implicitly convert type ‘SomeType[]’ to ‘System.Collections.ObjectModel.ObservableCollection<[Namespace].SomeType>’

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

There seems to be a known bug / issue in Visual Studio 2010 RC when dealing with Service References (to a WCF Service). The Collection Type of the Service Reference is set to custom and you start getting compilation errors like:
Cannot implicitly convert type ‘SomeType[]’ to ‘System.Collections.ObjectModel.ObservableCollection<[Namespace].SomeType>’   
Logo Microsoft Visual Studio

To get rid of this annoying error, just choose Configure Service Reference and select either Array or follow on of the instructions which are described here. I decided to use the ExtensionMethod way..

As confirmed by one of the Microsoft Product guys, this bug is killed in the final Version of Visual Studio 2010 – which should have been released yesterday .. according to rumors the RTM is detailed.. 



Configure Service Reference Dialog Box @msdn.microsoft.com

ObservableCollection missing as Collection Type in WCF since VS 2010 RC

VS2010 RC – WCF ObservableCollection is missing in Service Reference

1 thought on “VS.NET: Cannot implicitly convert type ‘SomeType[]’ to ‘System.Collections.ObjectModel.ObservableCollection<[Namespace].SomeType>’

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.