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

Error When Building OpenAccess Enabled Project

4 Answers 82 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brendan Enrick
Top achievements
Rank 1
Brendan Enrick asked on 26 Oct 2009, 06:47 PM
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 


4 Answers, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 29 Oct 2009, 05:38 PM
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.
0
Brendan Enrick
Top achievements
Rank 1
answered on 30 Oct 2009, 01:05 PM
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
0
Accepted
IT-Als
Top achievements
Rank 1
answered on 30 Oct 2009, 03:00 PM
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
0
Brendan Enrick
Top achievements
Rank 1
answered on 24 Nov 2009, 03:28 PM
Thanks for the help.

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

Brendan
Tags
Development (API, general questions)
Asked by
Brendan Enrick
Top achievements
Rank 1
Answers by
Ady
Telerik team
Brendan Enrick
Top achievements
Rank 1
IT-Als
Top achievements
Rank 1
Share this question
or