Error Creating Control

Posts   
 
    
neilx
User
Posts: 267
Joined: 02-Nov-2007
# Posted on: 18-Jun-2010 15:13:56   

v2.6 October 9th, 2009 Adapter template vs2010 win 7

I get

Error Creating Control - clients'MyCompany.BusinessObjects.Adapter.DatabaseSpecific.DataAccessAdapter,MyCompany.BusinessObjects.Adapter' could not be set on property 'AdapterTypeName'.

on the design grid in vs2010 with an LLBLGenProDataSource2 and a DevExpress AspxGrid.

I think my 'AdapterTypeName' is set correctly, so what else can I check?

here the .ascx code:

<%@ Control Language="C#" Inherits="Examples.DevExpressExample.Module.ViewDevExpressExample"
    AutoEventWireup="true" CodeBehind="ViewDevExpressExample.ascx.cs" EnableViewState="true" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="SD.LLBLGen.Pro.ORMSupportClasses.NET20" Namespace="SD.LLBLGen.Pro.ORMSupportClasses"
    TagPrefix="llblgenpro" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<llblgenpro:LLBLGenProDataSource2 ID="clients" runat="server" CacheLocation="None"
    AdapterTypeName="MyCompany.BusinessObjects.Adapter.DatabaseSpecific.DataAccessAdapter,MyCompany.BusinessObjects.Adapter"
    DataContainerType="EntityCollection" OnPerformSelect="ClientDataSource_PerformSelect"
    EntityFactoryTypeName="MyCompany.BusinessObjects.Adapter.FactoryClasses.ClientEntityFactory,MyCompany.BusinessObjects.Adapter"
    LivePersistence="False" SortingMode="ClientSide">
</llblgenpro:LLBLGenProDataSource2>
<dx:ASPxGridView ID="ASPxGridView1" runat="server" DataSourceID="clients">
</dx:ASPxGridView>

The code works and displays the filled grid correctly. I just want to get into the design time mode and set which columns to display etc using the gui.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 18-Jun-2010 20:48:41   
David Elizondo | LLBLGen Support Team
neilx
User
Posts: 267
Joined: 02-Nov-2007
# Posted on: 19-Jun-2010 18:47:50   

Thanks for the links and I am truly embarrassed I didn't search and find them myself. Sorry.

I followed all the steps. I even used CCleaner to make sure all temp files had been deleted, but no luck.

It turned out to be different dll builds of SD.LLBLGen.Pro.ORMSupportClasses.NET20. Once I made sure I was using the same build in my solution as the Adapter had been built with, then the error went away. This case closed.