Base solution for your next web application
Open Closed

Inetgrate DevExpress in Angualr + ASPCore - Tutorial with V12 it wa sworking -. with new ASPZERO V13 do not work any more #12332


User avatar
0
pliaspzero created

Hi,

we integrated in ASPZERO V12 - DevExpress in Angualr + ASPCore - successfully.

We switched now to ASPZERO v13.4 - and it do not work any more.

We get below error. Any idea?

ERROR 2025-01-10 12:02:56,696 [70 ] DevExpress.AspNetCore.Reporting.Logger - StartBuild error

DevExpress.XtraReports.DataRetrievalException: Error when trying to populate the datasource. The following exception was thrown: No connection has been specified. ---> DevExpress.DataAccess.Sql.DatabaseConnectionException: No connection has been specified. at DevExpress.DataAccess.Sql.SqlDataSource.DevExpress.Data.IListAdapterAsync.EndFillList(IAsyncResult result, CancellationToken token) at DevExpress.XtraReports.Native.ListAdapterFillerAsync1.FillAsynch(IBackgroundService backgroundService, CancellationToken token, IAsyncResult result) at DevExpress.XtraReports.Native.ListAdapterFillerAsync1.ExecuteCore() at DevExpress.XtraReports.Native.DataSourceFiller.Execute() --- End of inner exception stack trace --- at DevExpress.XtraReports.Native.DataSourceFiller.Execute() at DevExpress.XtraReports.UI.XtraReportBase.FillDataSources(Boolean skipIfFilled) at DevExpress.XtraReports.UI.XtraReport.FillDataSourcesAsyncInternal(Boolean useAsync) at DevExpress.XtraPrinting.Native.Extensions.TaskExtensions.Await(Task task) at DevExpress.XtraReports.UI.XtraReport.FillDataSources() at DevExpress.XtraReports.UI.XtraReport.DevExpress.XtraReports.IReport.CreateDocumentCore(Single progressRange, Boolean buildForInstantPreview) at DevExpress.XtraReports.Native.DocumentCreator.Create(Single progressRange, Boolean buildForInstantPreview) at DevExpress.XtraReports.UI.XtraReport.CreateDocument(Single progressRange, Boolean buildForInstantPreview) at DevExpress.XtraReports.UI.XtraReport.CreateDocument(Boolean buildForInstantPreview) at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.DocumentBuilderAsyncBase2.<>c__DisplayClass19_0.<StartBuildAsync>b__5() at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.DocumentBuilderAsyncBase2.<>c.<StartBuildAsync>b__19_1(Action action) at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.DocumentBuilderAsyncBase`2.<>c__DisplayClass19_0.<


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Did you also upgrade DevExpress version ? Maybe this could be related, could you check that https://supportcenter.devexpress.com/ticket/details/t1270730/change-data-source-of-report-with-code-windows-form-c ?

    If it doesn't help, please let me know.

  • User Avatar
    0
    pliaspzero created

    Currently we use devextrem 24.2 (Testversion)

  • User Avatar
    0
    pliaspzero created

    Didn't help - any other idea?

    Steps to Reproduce:

    Integrate DevExpress in ASPZERO V12 (Angular + ASP Core) - Works fine.

    Upgrade to ASPZERO V13.4.

    Attempt to run the same implementation.

    Encounter the above error.

    Expected Behavior: DevExpress should function correctly in ASPZERO V13, just as it did in V12.

    Actual Behavior: The system throws a No connection has been specified error when trying to populate the data source.

    Troubleshooting Steps Taken:

    Verified database connection settings.

    Checked for breaking changes in DevExpress and ASPZERO V13.

    Ensured that all necessary dependencies and configurations are correctly set.

    Request for Assistance: Has anyone encountered a similar issue after upgrading to ASPZERO V13? Any insights or solutions would be appreciated.

  • User Avatar
    0
    pliaspzero created

    Hello, Thank you for reaching out to our support team. This behavior likely takes place due to a known bug in v24.2.3: Visual Studio Report Designer - Connection name disappears when you open a report in v24.2.3. Visual Studio Report Designer resets the connection information in a configuration file. We've fixed it. To immediately resolve the issue on your side, download and install the hotfix available in the bug report. The next maintenance update (v24.2.4) will also include the fix. If everything goes according to plan, we will release it at the end of January. However, if we find any issues during our tests, the release might be postponed for a week or two. Note: The hotfix fixes the initial issue with the SqlDataSource.ConnectionName line getting removed from the auto-generated XtraReport.Designer.cs file on any changes in the designer. Unfortunately, it is impossible for us to restore the previous configuration (we simply do not know what connection string was used originally). If you currently do not have this line in the partial file, either restore the previous report version from your version control system or reconfigure the connection through the corresponding "Field List" context menu option. Best regards, Boris