This is a migrated thread and some comments may be shown as answers.

Asp.Net Core 2.0

24 Answers 685 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Christian Sandöy
Top achievements
Rank 2
Christian Sandöy asked on 01 Aug 2017, 01:55 PM

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

Sort by
0
Peter
Telerik team
answered on 02 Aug 2017, 11:26 AM
Hi Christian,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Christian Sandöy
Top achievements
Rank 2
answered on 02 Aug 2017, 12:11 PM

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

0
Peter
Telerik team
answered on 03 Aug 2017, 03:41 PM
Hello Christian,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Christian Sandöy
Top achievements
Rank 2
answered on 04 Aug 2017, 08:25 AM

It is working again after I did a repair installation

What is the best way to move existing reports to a separate library?

0
Peter
Telerik team
answered on 07 Aug 2017, 10:09 AM
Hello Christian,

Copy and paste is working perfectly for moving reports between project.

Regards,
Peter
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Christian Sandöy
Top achievements
Rank 2
answered on 15 Aug 2017, 01:22 PM

Telerik.Reporting.Services.AspnetCore cant be installed in Core 2.0 project

because it depend on .Net framework 4.6.1

0
Squall
Top achievements
Rank 1
answered on 16 Aug 2017, 08:36 AM

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.

0
Christian Sandöy
Top achievements
Rank 2
answered on 16 Aug 2017, 01:55 PM

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

0
Peter
Telerik team
answered on 18 Aug 2017, 06:59 AM
Hello,

If you are utilizing report types .cs/.vb reports for ReportResolver you have to useReportTypeResolver.

Regards,
Peter
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Costa
Top achievements
Rank 1
answered on 21 Sep 2017, 01:30 PM
Hello, please provide a simplest ASP.NET CORE 2 project with .cs  or .vb reports.
0
Costa
Top achievements
Rank 1
answered on 24 Sep 2017, 11:43 AM

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;
        }
    }

0
Costa
Top achievements
Rank 1
answered on 24 Sep 2017, 01:00 PM
Is it generally possible to display reports in HTML5 or ASP.NETCore apps from the class library without TRDP or TRDX files?
0
Costa
Top achievements
Rank 1
answered on 25 Sep 2017, 12:53 PM
Can I hope for an answer?
0
Peter
Telerik team
answered on 25 Sep 2017, 03:14 PM
Hi Costa,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Costa
Top achievements
Rank 1
answered on 26 Sep 2017, 12:59 PM

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.

0
Costa
Top achievements
Rank 1
answered on 27 Sep 2017, 01:28 PM
I'm talking about the ASP-NETCore2Demo.zip project from your previous message.
0
Peter
Telerik team
answered on 27 Sep 2017, 02:04 PM
Hi Costa,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Costa
Top achievements
Rank 1
answered on 28 Sep 2017, 12:34 PM
Thanks.
0
Richard
Top achievements
Rank 1
answered on 17 Nov 2017, 12:49 AM

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.

0
Senthil
Top achievements
Rank 1
answered on 28 Dec 2017, 08:20 PM
Thanks. This fixed. These guys yet to fix it. Super wasted a day on this. 
0
Urs
Top achievements
Rank 1
answered on 07 Jun 2018, 08:46 AM

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 

 

0
Todor
Telerik team
answered on 12 Jun 2018, 08:37 AM
Hi Thomas,

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>
Note that for .NET Framework 4.7.1 the value will be net471, etc.
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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Milon
Top achievements
Rank 1
answered on 03 Sep 2018, 06:35 AM

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

 

0
Todor
Telerik team
answered on 05 Sep 2018, 02:15 PM
Hello 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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Christian Sandöy
Top achievements
Rank 2
Answers by
Peter
Telerik team
Christian Sandöy
Top achievements
Rank 2
Squall
Top achievements
Rank 1
Costa
Top achievements
Rank 1
Richard
Top achievements
Rank 1
Senthil
Top achievements
Rank 1
Urs
Top achievements
Rank 1
Todor
Telerik team
Milon
Top achievements
Rank 1
Share this question
or