Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning record versus fields only
Message
From
09/04/2012 14:29:55
 
 
To
09/04/2012 14:02:23
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01540661
Message ID:
01540707
Views:
38
>>The exeption says it all. You are requiring a return type of ClientAPI.ClientService.Client but the select is generating an anonymous type.
>
>The OfType approach was needed. See message #1540670 for more info.

That makes no sense to me. If you are assigning to a type of ClientAPI.ClientService.Client then the result must be of that type (or derived from it). In your code that would not be the case. Can you post enough code to show a working example....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform