Build fails with ambiguous reference

Posts   
 
    
Posts: 3
Joined: 30-Jun-2008
# Posted on: 30-Jun-2008 22:04:21   

Did I miss something when I generated my code?

I am getting several build errors for ambiguous references because of ISerializable. I can't imagine LLBLGen would extend ISerializable and then not use fully qualified path in generated code. Please help.

Error 2 'ISerializable' is an ambiguous reference between 'System.Runtime.Serialization.ISerializable' and 'SD.LLBLGen.Pro.ORMSupportClasses.ISerializable' C:\Barkley-svn\Heinens\src\HeinensAPI\Database\EntityClasses\CardEntity.cs 40 54 HeinensAPI

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 01-Jul-2008 05:15:50   

Hi Chris,

This is likely an assembly references error. You should check that your projects reference the correct ORMSupportClasses: http://llblgen.com/TinyForum/Messages.aspx?ThreadID=12414

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39872
Joined: 17-Aug-2003
# Posted on: 01-Jul-2008 10:31:03   

Don't reference the CF.net assembly version of the runtime lib but the real cf.net assembly. If you are targeting the compact framework, be sure you update to the latest build of the llblgen pro version you're using and install the latest service pack of the compact framework's .net version. Though I think it's a wrong reference, as David said.

Frans Bouma | Lead developer LLBLGen Pro