Linq Problem - Sequence contains no matching element
- by Pino
Ok I have the following, set-up and am recieving the following error.
returnData.Options = this.ProductOptions.Select(o => o.ToDataModel()).ToList();
This line of code should do a conversion from DAL Entity (Subsonic) to a ViewModel.
However I am recieving the following error message
Server Error in '/' Application.
Sequence contains no matching element
Now, I've checked and the this.ProductOptions variable contains 3 results.
Whats does this error meen and how can I debug it?