There is no report designer in my Asp.Net Core 2.0 projekt
use Visual Studio 2017 ver. 15.3.0 preview 6
When I open a MVC 5 projekt in the same VS there is a designer
24 Answers, 1 is accepted
The report designer not NET Core projects. Generally, our recommendation is to create the reports in a .NET Class Library and reference that library to your report service or viewer projects. This way you can reuse the reports in different applications. For more information see: How To: Create a Report (Visual Studio)
Regards,
Peter
Progress Telerik
In Visual Studio 2017 ver. 15.3.0 Preview 7.0 I can't add a new report
the option does not exist
Telerik Report extension is installed
Generally, the Telerik Reporting installer is installing the item and project templates. If you have installed Telerik Reporting prior Visual Studio you have to go through the installer again. I assume that you have correctly installed Telerik Reporting.
In what type of project you try to add the Reports? Our recommendation is to add the reports to a Class Library or to a Telerik Report Library that should be available in Add New Project dialog.
If you still experience difficulties please make short video shows the unexpected behavior and elaborate on the used Telerik Reporting version.
Regards,
Peter
Progress Telerik
It is working again after I did a repair installation
What is the best way to move existing reports to a separate library?
Copy and paste is working perfectly for moving reports between project.
Regards,
Peter
Progress Telerik
Telerik.Reporting.Services.AspnetCore cant be installed in Core 2.0 project
because it depend on .Net framework 4.6.1
Have you tried According to the Core 2.0 release notes, now we should be able even to reference the assemblies directly even without the NuGet packages:
https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-net-core-2-0/
.NET Core NET Standard projects can NET Framework NuGet packages and projects.
Reference .NET Framework libraries NET Standard
You can now NET Framework libraries NET Standard libraries using Visual Studio 2017 15.3. This feature helps you NET Framework code NET Standard NET Core over time (start with binaries and then move to source). It is also useful in the case that the source code is no longer accessible or is lost for NET Framework library, enabling it to be still be used in new scenarios.
We expect that this feature will be used most commonly NET Standard libraries. It also works NET Core apps and libraries. They can depend NET Framework libraries, too.
The supported scenario is referencing NET Framework library that happens to only use types within NET Standard API set. Also, it is only supported for libraries that NET Framework 4.6.1 or earlier (even .NET Framework 1.0 is fine). If NET Framework library you reference relies on WPF, the library will not work (or at least not in all cases). You can use libraries that depend on additional not for the you use. In that case, you will need to invest in testing.
I have added ad library with my reports to my project
What do I write in report controller regarding ReportFileResolver
Because when I deploy I only get a dll file
If you are utilizing report types .cs/.vb reports for ReportResolver you have to useReportTypeResolver.
Regards,
Peter
Progress Telerik
Or, at least, explain how to correct the following code(CSharp.Html5Demo) if the reports (.cs) are contained in the PTS.Reports class library:
public class ReportsController : ReportsControllerBase
{
static ReportServiceConfiguration configurationInstance;
static ReportsController()
{
var appPath = HttpContext.Current.Server.MapPath("~/");
var reportsPath = Path.Combine(appPath, @"..\..\..\Report Designer\Examples");
var resolver = new ReportFileResolver(reportsPath)
.AddFallbackResolver(new ReportTypeResolver());
configurationInstance = new ReportServiceConfiguration
{
HostAppId = "Html5DemoApp",
Storage = new FileStorage(),
ReportResolver = resolver,
// ReportSharingTimeout = 0,
// ClientSessionTimeout = 15,
};
}
public ReportsController()
{
this.ReportServiceConfiguration = configurationInstance;
}
}
We handle support threads with priority. Thus if it's an urgent question I encourage you to send us a support ticket.
Up to your question. Reports designed in VS and Standalone Report Designer are supported in ASP.NET Core. I have made a sample project to confirm that TypeReportResolver is working as expected. You can find it as an attached archive.
My suggestion is to make sure that the used NuGet packages and the class library with the reports are both using the same version of Telerik Reporting.
Regards,
Peter
Progress Telerik
Thank you, Peter.
Reports that do not use a database connection are working, as expected in development mode and in runtime. But reports that use a database connection work as expected only in development mode. In runtime, an error occurs:
"Unable to get report parameters.
An error has occurred.
Unable to establish a connection to the database. Please, verify that your connection string is valid. In case you use a named connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application."
My attempts to sort things out so far are unsuccessful. I would be very grateful if you could help to cope with this problem.
Generally the error indicates that the connection string is missing (which don't seem to be the case), or the application is running under an user that don't have the required DB permissions. You can try to add a new SQL user with password to the DB and update the app.config connection string accordingly.
Additionally to ensure that this is not a problem with the application configuration file, you can try with embedded connection string. Just right click the SqlDataSource component, select Configure and on the second wizard page choose the 'Embedded in the report definition' option.
Regards,
Peter
Progress Telerik
I've spent ages on this until it clicked.
core apps do not have a web.config it is app.config.
Update your demos to use app.config and then the simple connectionstring settings work as expected.
Hello ,
I try do this https://docs.telerik.com/reporting/html5-report-viewer-asp-net-core-2 and after add Telerik.Reporting and Telerik.Reporting.Services.AspNetCore I have this two warnings , " warning NU1701: Package 'Telerik.Reporting 12.1.18.604' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project. " and " warning NU1701: Package 'Telerik.Reporting.Services.AspNetCore 12.1.18.604' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project. " .
I try for ASP.Net Core 2.0 and 2.1 and i have the sames warnings.
I attach a print.
Can help ?
Regards
To set up a Telerik Reporting REST Service in a .NET Core project the latter should target the full .NET Framework, as explained in step 4 of Creating a Sample ASP.NET Core Project article section.
I noticed that with the latest update of Visual Studio 2017 the .NET Framework cannot be chosen from the corresponding New ASP.NET Core Web Application dialog drop down. I couldn't change the framework from the project Properties either. It seems that the UI of the Visual Studio has been modified to not allow choosing .NET Framework.
To overcome the problem it will be necessary to manually edit the targeted framework in the project file (.csproj) and remove/add AspNetCore references from/to the project Dependencies. Here is how to do this:
1. Unload the project - right click on it and select 'Unload Project'.
2. Right click on the unloaded project and select 'Edit ProjectName.csproj'. The .csproj file opens in the VS for editing.
3. The PropertyGroup section looks like:
<
PropertyGroup
>
<
TargetFramework
>netcoreapp2.0</
TargetFramework
>
</
PropertyGroup
>
change it manually to look like :
<
PropertyGroup
>
<
TargetFramework
>net461</
TargetFramework
>
</
PropertyGroup
>
Save the .csproj file.
4. Reload project - right click on the unloaded project and select 'Reload Project'.
Note - now the warning is on the Microsoft.AspNetCore.All package, as the targeted framework is .NET Framework 4.6.1, and the project cannot be built.
5. Remove Microsoft.AspNetCore.All from Dependencies->NuGet - right click on the package and select 'Remove'.
6. Add the following packages to the project - right click on the project and select 'Manage NuGet Packages...':
Microsoft.AspNetCore
Microsoft.AspNetCore.Mvc
Microsoft.AspNetCore.StaticFiles
Now it should be possible to build the project without warnings, and you can continue to set up the REST Service according to the instructions in our help article.
Regards,
Todor
Progress Telerik
Hi Todor,
I am unable to find any Telerik.Reporting and Telerik.Reporting.Services.AspNetCore NuGet packages from the private Telerik NuGet feed at https://nuget.telerik.com/nuget.
I have added the feed and browsed the feed in nuget package manager, but there is only KendoUIProffessional.Traial nothing else like Telerik.Reporting and Telerik.Reporting.Services.AspNetCore. Can you please help me to resolve this.
Thanks,
Milon
You will need a license for Telerik Reporting in order to have Telerik.Reporting assemblies in the private Telerik NuGet feed.
Currently you hold a Trial license only for Kendo UI Professional, hence the available NuGet packages.
You can test our product by downloading the fully functional Trial version. The corresponding NuGet packages will appear in the NuGet feed afterwards.
Note that there may be a delay between downloading the Trial and the appearance of the packages in the feed (up to 2 hours).
Regards,
Todor
Progress Telerik