LLBLGenProDataSource2 and DevExpress WebChartcontrol

Posts   
 
    
Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 12-Jul-2008 19:11:52   

I'm not sure if the problem is due to LLBLGen or to DevExpress WebChartControl.

I'm trying to set the DataSourceID Property of a WebChartControl with a LLBLGenProDataSource2 object, at design time in Visual Studio 2005.

Visual studio 2005 shows an error messagebox: "Error setting value 'dsName' to property DataSourceID. Details: Specified method is not supported.

dsName is my LLBLGenProDataSource2.

Have you any idea about this problem?

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 13-Jul-2008 15:12:17   

Copied from: http://capableobjects.com/apps/InstantForum414/Topic208-4-1.aspx

Jonas wrote:

create the connection between the devex-component and the EcoDataSource in PageLoad instead of in the ASP designer. Make sure your debugger is set to stop on any CLR exception and when it does, look at the callstack. It should contain the method that is not implemented.

the EcoDataSource throws NotImplementedException in a few cases:

  • when trying to set the owner of a datasource column (when it already has an owner)
  • When trying to perform a delete/insert operation if no deletemode is set

Neither of the above should happen in designtime as far as I can see.

EcoSpaceManager also throws this in some cases: * When trying to set focus to the EcoSpaceManager * when trying to enable theming or get the SkinID (it is not a visible component, so there is really no point in this) * When trying to set the EcoSpaceManager to Visible...

but that should not happen either in your scenario.

Please post a callstack with the details of the exception you get in runtime.

Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 14-Jul-2008 12:47:14   

Walaa wrote:

Copied from: http://capableobjects.com/apps/InstantForum414/Topic208-4-1.aspx

Jonas wrote:

create the connection between the devex-component and the EcoDataSource in PageLoad instead of in the ASP designer. Make sure your debugger is set to stop on any CLR exception and when it does, look at the callstack. It should contain the method that is not implemented.

the EcoDataSource throws NotImplementedException in a few cases:

  • when trying to set the owner of a datasource column (when it already has an owner)
  • When trying to perform a delete/insert operation if no deletemode is set

Neither of the above should happen in designtime as far as I can see.

EcoSpaceManager also throws this in some cases: * When trying to set focus to the EcoSpaceManager * when trying to enable theming or get the SkinID (it is not a visible component, so there is really no point in this) * When trying to set the EcoSpaceManager to Visible...

but that should not happen either in your scenario.

Please post a callstack with the details of the exception you get in runtime.

My problem appears only at design time. Setting the DataSourceID in Page Load works....

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 14-Jul-2008 14:24:10   

My problem appears only at design time.

Please switch to the source view and copy the corresponding code of the LLBLGenDataSource2 definition and the that of the WebChartControl too, and paset them here.

Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 14-Jul-2008 16:08:17   

Walaa wrote:

My problem appears only at design time.

Please switch to the source view and copy the corresponding code of the LLBLGenDataSource2 definition and the that of the WebChartControl too, and paset them here.

impossible, i'm trying to set the DataSourceID properry of the WebChartControl in the Visual Studio 2005 designer, but it shows immediately the error MessageBox.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 15-Jul-2008 07:26:09   

Just paste the declarative code. Switch from Design view to Source view of your page and paste here the aspx code here.

Or (preferred in this case), attach the *.aspx problematic page to this thread.

David Elizondo | LLBLGen Support Team
Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 15-Jul-2008 10:43:14   

daelmo wrote:

Just paste the declarative code. Switch from Design view to Source view of your page and paste here the aspx code here.

Or (preferred in this case), attach the *.aspx problematic page to this thread.

I create ad hoc project, based on NWind Access database. After that I try to add a WebchartControl and a LLBLGenProDataSource2 to default.aspx page, and I obtained still the same error. the following is the default.aspx markup code:


<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="DevExpress.XtraCharts.v8.1.Web, Version=8.1.6.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.XtraCharts.Web" TagPrefix="dxchartsui" %>
<%@ Register Assembly="DevExpress.XtraCharts.v8.1, Version=8.1.6.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.XtraCharts" TagPrefix="cc1" %>

<%@ Register Assembly="SD.LLBLGen.Pro.ORMSupportClasses.NET20" Namespace="SD.LLBLGen.Pro.ORMSupportClasses"
    TagPrefix="llblgenpro" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>


</head>
<body>
    <form id="form1" runat="server">
        &nbsp;<dxchartsui:WebChartControl ID="WebChartControl1" runat="server">
            <SeriesTemplate LabelTypeName="SideBySideBarSeriesLabel" PointOptionsTypeName="PointOptions"
                SeriesViewTypeName="SideBySideBarSeriesView">
                <View HiddenSerializableString="to be serialized">
                </View>
                <Label HiddenSerializableString="to be serialized">
                    <FillStyle FillOptionsTypeName="SolidFillOptions">
                        <Options HiddenSerializableString="to be serialized" />
                    </FillStyle>
                </Label>
                <PointOptions HiddenSerializableString="to be serialized">
                </PointOptions>
                <LegendPointOptions HiddenSerializableString="to be serialized">
                </LegendPointOptions>
            </SeriesTemplate>
            <FillStyle FillOptionsTypeName="SolidFillOptions">
                <Options HiddenSerializableString="to be serialized" />
            </FillStyle>
        </dxchartsui:WebChartControl>
        <llblgenpro:LLBLGenProDataSource2 ID="llblDsOrders" runat="server" AdapterTypeName="NWind.Data.DatabaseSpecific.DataAccessAdapter, NWind.DataDBSpecific"
            DataContainerType="EntityCollection" EntityFactoryTypeName="NWind.Data.FactoryClasses.OrdersEntityFactory, NWind.Data">
        </llblgenpro:LLBLGenProDataSource2>
    </form>
</body>
</html>


Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 15-Jul-2008 10:58:49   

I try to create a new DataSource directly from the WebChartControl smart tag:

1) data source -> <New Data Source...>, 2) I selected LLBLGenProDataSource2 type 3) click OK 4)... see the screenshot attached

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 15-Jul-2008 15:33:42   

Please let the SD.LLBLgen.Pro.ORMSupportClasses.NET20.dll be referenced from the same location, both in your application references and in VS toolbox.

Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 15-Jul-2008 15:40:53   

Walaa wrote:

Please let the SD.LLBLgen.Pro.ORMSupportClasses.NET20.dll be referenced from the same location, both in your application references and in VS toolbox.

both are referenced from c:\program files\ ... (llblgen installatioin dir)

another screenshot attached

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 15-Jul-2008 16:07:26   

both are referenced from c:\program files\ ... (llblgen installatioin dir)

The previous error screenshot, suggested not. Most probably in the application you have referenced the dll with the option "copy local" set to true.

another screenshot attached

What should this one proves?

Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 15-Jul-2008 16:40:17   

Walaa wrote:

both are referenced from c:\program files\ ... (llblgen installatioin dir)

The previous error screenshot, suggested not. Most probably in the application you have referenced the dll with the option "copy local" set to true.

no, i created a simple test project, copy local is set to false, and in every case the assembly are the same, and the problem is at design time. All works fine, in all my projects, except WebChartControl with LLBLGenDataSource.

another screenshot attached What should this one proves?

this shows the error in the llblgenprodatasource after I set as DataSource of the WebChartcontrol. If I use a simple AccessDataSource everything works fine.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39866
Joined: 17-Aug-2003
# Posted on: 15-Jul-2008 16:41:03   

Weird thing is: the error text "Specified method is not supported" isn't in our runtime library. The text is the default for NotSupportedException(), which is thrown in 1 location that way (otherwise there's always a descriptive message) which is in BatchActionQuery.ExceptionInfoRetriever.get/set. Completely not used during design time.

The error in the startpost suggests that the exception is thrown by the devexpress control, though the error in the last screenshot suggests the exception is thrown by the datasourcecontrol (which extremely odd as we don't throw that kind of exceptions).

So it's a bit strange. If you use an ASPxGrid or GridView instead of the webchart, (just for testing!), do you get the same error?

Frans Bouma | Lead developer LLBLGen Pro
Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 15-Jul-2008 16:48:18   

Otis wrote:

Weird thing is: the error text "Specified method is not supported" isn't in our runtime library. The text is the default for NotSupportedException(), which is thrown in 1 location that way (otherwise there's always a descriptive message) which is in BatchActionQuery.ExceptionInfoRetriever.get/set. Completely not used during design time.

The error in the startpost suggests that the exception is thrown by the devexpress control, though the error in the last screenshot suggests the exception is thrown by the datasourcecontrol (which extremely odd as we don't throw that kind of exceptions).

So it's a bit strange. If you use an ASPxGrid or GridView instead of the webchart, (just for testing!), do you get the same error?

no, every other control works, I use extensively aspxGridView, aspxPivotGrid, etc....

Devexpress chart controls for Windows Forms works also. The only problem is WebChartControl with LLBLGenProDataSource and LLBLGenProDataSource2.

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 16-Jul-2008 10:29:43   

every other control works, I use extensively aspxGridView, aspxPivotGrid,

I can only conclude from the above words that it's a WebChartsControl issue.

Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 16-Jul-2008 11:26:19   

Walaa wrote:

every other control works, I use extensively aspxGridView, aspxPivotGrid,

I can only conclude from the above words that it's a WebChartsControl issue.

I opened also a bug report in DevExpress support center. I'll let you know...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39866
Joined: 17-Aug-2003
# Posted on: 16-Jul-2008 11:26:29   

After fighting with vs.net 2008 for a while, I finally managed to get a webpage defined with a webchartcontrol (v8.1.3.0) and v2.6's datasourcecontrol for adapter.

When I select, in design view, in the smarttag of the webchartcontrol the datasource I defined (dsOrders), I get the error you got too, though as a popup. the datasourcecontrol isn't reporting any error.

So it's something related to the webchartcontrol. It might be that it requires that the datasourcecontrol is an hierarchical control, not sure. Anyway, it's not in our code.

Frans Bouma | Lead developer LLBLGen Pro
Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 16-Jul-2008 18:04:10   

Otis wrote:

After fighting with vs.net 2008 for a while, I finally managed to get a webpage defined with a webchartcontrol (v8.1.3.0) and v2.6's datasourcecontrol for adapter.

When I select, in design view, in the smarttag of the webchartcontrol the datasource I defined (dsOrders), I get the error you got too, though as a popup. the datasourcecontrol isn't reporting any error.

So it's something related to the webchartcontrol. It might be that it requires that the datasourcecontrol is an hierarchical control, not sure. Anyway, it's not in our code.

I opened this bug report: http://www.devexpress.com/Support/Center/p/B95919.aspx

Antonio avatar
Antonio
User
Posts: 67
Joined: 09-Oct-2007
# Posted on: 17-Jul-2008 10:17:25   

FYI

http://www.devexpress.com/Support/Center/p/B95919.aspx

fixed in the next public release

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39866
Joined: 17-Aug-2003
# Posted on: 17-Jul-2008 10:36:01   

Antonio wrote:

FYI

http://www.devexpress.com/Support/Center/p/B95919.aspx

fixed in the next public release

Thanks for the info. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 17-Jul-2008 10:36:16   

Thanks for the feedback.