System.NotSupportedException

Thread is closed for posting
4 posts, 0 answers
  1. Lars Adler
    Lars Adler avatar
    2 posts
    Member since:
    Jun 2006

    Posted 07 Nov 2008 Link to this post

    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
  2. Thomas
    Admin
    Thomas avatar
    590 posts

    Posted 10 Nov 2008 Link to this post

    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.
  3. Thomas
    Admin
    Thomas avatar
    590 posts

    Posted 12 Nov 2008 Link to this post

    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.
  4. Thomas
    Admin
    Thomas avatar
    590 posts

    Posted 14 Nov 2008 Link to this post

    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.
Back to Top