Not able to import LLBLGen DLLs

Posts   
 
    
Posts: 18
Joined: 06-Dec-2012
# Posted on: 06-Dec-2012 14:46:54   

I'm working on my first LLBLGen project that will be included into at VS 2010 WCF solution. I added the reference to the project to my web service. Then I tried to add the import statements to service and I'm able to do that but when I build the service. I get warning and error messages dealing with anything LLBLGen. The warning messages are telling me that the DLLs are not found. With that being said, I get a error message saying my object collection class is not available. Is there anything special I have to do to use the LLBLGen project?

For example: Imports NESL.Data.EntityClasses Imports NESL.Data.CollectionClasses

Thank you.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 06-Dec-2012 21:13:11   

Please post exact compilation error texts. And the llblgen pro runtime library version (check the forum guidelines thread for more details).

Posts: 18
Joined: 06-Dec-2012
# Posted on: 06-Dec-2012 21:22:11   

Here is a screen shot of my errors within Visual Studio. The runtime library is v3.1.

Attachments
Filename File size Added on Approval
Error Messages within Visual Studio 2010.PNG 108,182 06-Dec-2012 21:22.25 Approved
Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 06-Dec-2012 21:29:34   

Does the service reference the generated code project and the ORMSupportClasses?

Posts: 18
Joined: 06-Dec-2012
# Posted on: 06-Dec-2012 21:33:28   

Yes I added the reference to the project in the web service.

Attachments
Filename File size Added on Approval
reference page for project.PNG 90,431 06-Dec-2012 21:33.40 Approved
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-Dec-2012 06:34:32   

That's odd, but surely you are missing something, I don't know what but please double check the following:

  • You are generating code for the appropriate .net version at LLBLGen version.
  • The generated projects compile
  • You are referencing the correct LLBLGen libraries. As far as I can see you are doing that but it might be that you are not doing that in the generated projects, just check that.
  • Something there is an error that is the cause of all other ones. Try to find it on the errors list.
  • Does it compile if the project is a console application?
David Elizondo | LLBLGen Support Team
Posts: 18
Joined: 06-Dec-2012
# Posted on: 10-Dec-2012 14:32:04   

I tried that and I got the same results. I did see something while looking at all the warning messages. I got these same messages in every solution I add the LLBLGen project. Maybe I didn't do something correctly while creating the new project within LLBLGen.

Posts: 18
Joined: 06-Dec-2012
# Posted on: 10-Dec-2012 14:54:15   

I noticed something else in "Configure the code generation process" screen. I had my template group set to self servicing. Should I have that set to Adapter? The reason I'm asking that is because the information under the selection reads " Template group which is focused on having persistence logic as a service." It was just a thought.

Posts: 18
Joined: 06-Dec-2012
# Posted on: 10-Dec-2012 16:48:05   

I think I found out why I was getting all these warning messages. I found that my target framework in my service was .NET Framework 4 Client Profile. I changed it to be .NET Framework 4 everything is working now.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 10-Dec-2012 17:11:55   

yes, v3.1 isn't client profile compliant, v3.5 is though.

Frans Bouma | Lead developer LLBLGen Pro