Error When Building OpenAccess Enabled Project

5 posts, 1 answers
  1. Brendan Enrick
    Brendan Enrick avatar
    28 posts
    Member since:
    Jul 2009

    Posted 26 Oct 2009 Link to this post

    Not sure what is causing this error. When I build my OpenAccess-enabled project I am receiving an error that looks like this.

    [D:\dev\MyApp\src\OpenAccessData\bin\Debug\MyApp.OpenAccessData.dll : <>f__AnonymousType0`2[<user>j__TPar,<country>j__TPar]::Equals][offset 0x0000001B] callvirt on static  D:\dev\MyApp\src\OpenAccessData\    [IL] 


    There seems to be some issue with the IL being generated. My guess is that it has something to do with my database schema. I have a country table which has a varchar(2) unique key (like these "US","UK", "BG"). I have foreign key constraints on other tables which reference that unique key column.

    This error also always appears, but I am pretty certain it is just telling me about the first error.

    The command "peverify.exe /nologo "D:\dev\MyApp\src\OpenAccessData\bin\Debug\MyApp.OpenAccessData.dll"" exited with code 1. OpenAccessData 


  2. Ady
    Admin
    Ady avatar
    589 posts

    Posted 29 Oct 2009 Link to this post

    Hi Brendan Enrick,

     Yes, this looks like an enhancer related error. Can you send us you non-enhanced compiled assembly?
    You can set the 'Enhance' project property (F4 after selecting the project in the Solution Explorer) to false and build the project.

    Greetings,
    Ady
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Brendan Enrick
    Brendan Enrick avatar
    28 posts
    Member since:
    Jul 2009

    Posted 30 Oct 2009 Link to this post

    Not sure how you want me to send you the non-enhanced compiled assembly.

    Anyway I think this has something to do with my linq query where I am performing a join. I changed the code and the error message changes.

    I am aware that joins are currently not supported, but I am not doing the join in the initial query. I am getting all of the data I require to do the work and calling the ToList() method on it. I am then joining the data, because I know that joins are not supported.

    Thanks,
    Brendan
  5. Answer
    TSE
    TSE avatar
    381 posts
    Member since:
    Sep 2008

    Posted 30 Oct 2009 Link to this post

    Hi Brendan,

    Sorry for intefering your thread.

    If you have the opportunity to do so, you might check out the Q3 beta as it has support for LINQ joins.

    This will eventually confirm / not confirm that is has something to do with the join as you suspect.

    Regards

    Henrik
  6. Brendan Enrick
    Brendan Enrick avatar
    28 posts
    Member since:
    Jul 2009

    Posted 24 Nov 2009 Link to this post

    Thanks for the help.

    The Q3 2009 release of OpenAccess fixed my issues with the enhancer. The errors are gone.

    Brendan
Back to Top
DevCraft banner