This is a migrated thread and some comments may be shown as answers.

System.NotSupportedException

3 Answers 160 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lars Adler
Top achievements
Rank 1
Lars Adler asked on 07 Nov 2008, 10:46 AM
Hi
i am recieving a System.NotSupportedException error when i try to execute the following code:

Dim scope As IObjectScope = ObjectScopeProvider1.GetNewObjectScope
Dim result = (From i In scope.Extent(Of Address)() Where i.Name1 <> String.Empty)

System.NotSupportedException:
Not implemented: Execution of 'Operators.CompareString' on the database server side currently not implemented..

what am i doing wrong ?

thanks in advance

3 Answers, 1 is accepted

Sort by
0
Thomas
Telerik team
answered on 10 Nov 2008, 08:51 AM
Hi Lars Adler,

i can reproduce the issue which stems from the fact that VB/LINQ is translated differently to LINQ than C#.
We will provide a fix for this in the next version.

All the best,
Thomas
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Thomas
Telerik team
answered on 12 Nov 2008, 04:09 PM
Hello Lars Adler,

there is a workaround available which can help you until this is fixed: you need to use the .net methods and avoid the vb syntax.

... Where Not i.Name.Equals(""))

Please note also, that System.Empty was also not recognized correctly.
We are working for a fix for both issues.

All the best,
Thomas
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Thomas
Telerik team
answered on 14 Nov 2008, 02:39 PM
Hello Lars Adler,

the next version will contain the fix. Thanks again for reporting this issue.

Regards,
Thomas
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Lars Adler
Top achievements
Rank 1
Answers by
Thomas
Telerik team
Share this question
or