“ReportServiceConfiguration”在 Telerik Web Report Designer (dotNetCore) api 中不包含“ReportingEngineConfiguration”错误的定义

问题描述 投票:0回答:1

我已经使用 dotNetCore 构建了一个 Telerik Web Report Designer web api,它有一个问题“ReportServiceConfiguration”不包含“ReportingEngineConfiguration”的定义我也安装了所有 dll 库。它出现在 program.cs 文件中。

builder.Services.AddSingleton<IReportServiceConfiguration>(sp => new ReportServiceConfiguration
        {
            ReportingEngineConfiguration = sp.GetService<IConfiguration>(),
            HostAppId = "newcumstomreportAPI",
            Storage = new FileStorage(),
            ReportSourceResolver = new UriReportSourceResolver(
                Path.Combine(Environment.CurrentDirectory, "Reports"))
        }); 

这可能是什么问题?我该怎么做才能解决这个问题?

asp.net-mvc asp.net-core telerik-reporting
1个回答
0
投票

你查过ReportServiceConfiguration的全名了吗?

我在 .net 6 webapi 项目中尝试使用该包:

试过

Telerik.Reporting.Services.ReportServiceConfiguration

没有错误发生:

© www.soinside.com 2019 - 2024. All rights reserved.