LLBLGenProDataSource2 not functioning properly anymore

Posts   
 
    
jesterJP
User
Posts: 30
Joined: 21-Nov-2007
# Posted on: 21-Nov-2007 17:15:20   

I have downloaded the trial version of the product and I am about 5 days into my trial period. I have generated my libraries as Adapter (as opposed to SelfServicing). The libraries compiled and worked as part of my web project. I added a reference to SD.LLBLGen.Pro.ORMSupportClasses.NET20 to my web project and I added LLBLGenProDataSource and LLBLGenProDataSource2 to my toolbox and all was good. I was able to drag/drop the datasource to the webform and configure it using the "Configure Data Source". My website performed as expected and my data was accessible.

In order to take advantage of some of the features of the product, I added some entries to the web.config file of my project. This is where things went wrong. The LLBLGenProDataSource2 controls started giving me error that the "Control Cannot be Created" due to the "Control Assembly Could Not Be Found" (not exact wording, but close). I reverted back to an backup copy of the web.config file and readded my references to my project for SD.LLBLGen.Pro.ORMSupportClasses.NET20 and readded my toolbox items for the DataSources. I got rid of the error, but then my webpage wouldn't render any controls. I stripped my project of all references and usage of anything from LLBLGen Pro and I was back to a minimal, but working version of my website.

I regenerated my LLBLGen project, added the projects to my VS2005 web project, added the reference to SD.LLBLGen.Pro.ORMSupportClasses.NET20 and recompiled. Everything is still good. Added the Datasources back to the toolbox and I can drag them to my webpage with no errors, but in Design mode, my Datasource doesn't show up. I can manually configure my datasource and use it as the DataSourceID from a gridview and my webpage works fine (ie. displays the data from my datasource with no errors).

Here is the code from my .ascx file that I manually configured:


<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Test.ascx.cs" Inherits="DBASupport.Web.Test" %>
<%@ Register Assembly="SD.LLBLGen.Pro.ORMSupportClasses.NET20" Namespace="SD.LLBLGen.Pro.ORMSupportClasses"
    TagPrefix="llblgenpro" %>
<asp:GridView ID="GridView1" runat="server" DataSourceID="ods" AutoGenerateColumns="true">
</asp:GridView>
<llblgenpro:LLBLGenProDataSource2 ID="ods" runat="server" DataContainerType="EntityCollection" AdapterTypeName="DBASupport.LLBL.DAL.DatabaseSpecific.DataAccessAdapter, DBASupport.LLBL.DALDBSpecific" EntityFactoryTypeName="DBASupport.LLBL.DAL.FactoryClasses.MachineEntityFactory, DBASupport.LLBL.DAL">
</llblgenpro:LLBLGenProDataSource2>

Any idea what I need to do to fix the Datasource items from the toolbox?

Thanks...

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 21-Nov-2007 17:49:10   

but in Design mode, my Datasource doesn't show up.

Nothing appears, not even an error?

Which version of the LLBLGen Pro runtime libraries are you using? consult: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7720

Are you sure that the LLBLGen Pro runtime libraries used in the toolbox are the same that are used all over the place?

jesterJP
User
Posts: 30
Joined: 21-Nov-2007
# Posted on: 21-Nov-2007 23:25:23   

Walaa wrote:

Nothing appears, not even an error?

Nothing appears and no error at all.

Which version of the LLBLGen Pro runtime libraries are you using?

Designer - Help..About = 2.5 Final DEMO Reference added to project runtime version = v2.0.50727 Reference added to project version = 2.5.0.0 Toolbox item refers to .dll with version = v2.0.50727 Toolbox item Assembly name = SD.LLBLGen.Pro.ORMSupportClasses.Net20 (2.5.0.0)

Are you sure that the LLBLGen Pro runtime libraries used in the toolbox are the same that are used all over the place?

Based on the following points, I believe that I am using the same versions:

  1. The project was working fine and I changed no references or locations of libraries when it stopped working. Only change was to [appSettings] in web.config
  2. I've never used this product before this week and have only downloaded one version, so I'm not sure how I could have multiple versions.

Thanks...

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 22-Nov-2007 09:46:37   

Designer - Help..About = 2.5 Final DEMO Reference added to project runtime version = v2.0.50727 Reference added to project version = 2.5.0.0 Toolbox item refers to .dll with version = v2.0.50727 Toolbox item Assembly name = SD.LLBLGen.Pro.ORMSupportClasses.Net20 (2.5.0.0)

None of the above numbers is a correct runtime library version. Please check the link posted before.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 22-Nov-2007 11:01:11   

Be aware that vs.net 2005 has bugs in this area. It's recommended you install vs.net 2005 SP1 to fix a truckload of the issues with assemblies and the webdesign editor. If you don't have SP1 for vs.net 2005 installed, it's likely the issues you run into are caused by a bug in vs.net 2005 where it gets lost with assemblies being referenced and its own copied temp versions.

Also, the assemblies referenced in your webproject are the ones used at design time. This means that it's recommended you build the project at least once.

Frans Bouma | Lead developer LLBLGen Pro
jesterJP
User
Posts: 30
Joined: 21-Nov-2007
# Posted on: 22-Nov-2007 12:48:26   

Walaa wrote:

None of the above numbers is a correct runtime library version. Please check the link posted before.

Sorry, the runtime version is: 2.5.7.1019.

It's recommended you install vs.net 2005 SP1 to fix a truckload of the issues with assemblies and the webdesign editor.

vs.net 2005 version: Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)

Also, the assemblies referenced in your webproject are the ones used at design time. This means that it's recommended you build the project at least once.

I'm not sure what you mean my this. I have built my project and it builds with no errors. Are you saying that I should reference the SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll that was placed in my project directory?

Thanks!!!

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 22-Nov-2007 14:18:51   

As we are not able to reproduce this behaviour, could you please attach a simple repro solution? Also it would be of much help if you listed the steps you took to create that repro solution.

jesterJP
User
Posts: 30
Joined: 21-Nov-2007
# Posted on: 23-Nov-2007 15:06:21   

A wise man once told me, "When looking for the cause of a problem, NEVER rule out the possibility of sheer and utter stupidity...."

I found the problem. When viewing the pages in vs2005 in design mode under the view menu called "Non-Visual Controls". I had unchecked this option by mistake.

Thanks for all you help!!!!