Asp.Net Core 2.0

25 posts, 0 answers
  1. Christian Sandöy
    Christian Sandöy avatar
    53 posts
    Member since:
    Aug 2005

    Posted 01 Aug 2017 Link to this post

    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

  2. Peter
    Admin
    Peter avatar
    1651 posts

    Posted 02 Aug 2017 Link to this post

    Hi Christian,

    The report designer do not support .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
  3. Christian Sandöy
    Christian Sandöy avatar
    53 posts
    Member since:
    Aug 2005

    Posted 02 Aug 2017 Link to this post

    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

  4. Peter
    Admin
    Peter avatar
    1651 posts

    Posted 03 Aug 2017 Link to this post

    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
  5. Christian Sandöy
    Christian Sandöy avatar
    53 posts
    Member since:
    Aug 2005

    Posted 04 Aug 2017 Link to this post

    It is working again after I did a repair installation

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

  6. Peter
    Admin
    Peter avatar
    1651 posts

    Posted 07 Aug 2017 Link to this post

    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
  7. Christian Sandöy
    Christian Sandöy avatar
    53 posts
    Member since:
    Aug 2005

    Posted 15 Aug 2017 Link to this post

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

    because it depend on .Net framework 4.6.1

  8. Squall
    Squall avatar
    181 posts
    Member since:
    Feb 2011

    Posted 16 Aug 2017 Link to this post

    Have you tried that? 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 and .NET Standard projects can reference .NET Framework NuGet packages and projects.

    Reference .NET Framework libraries from .NET Standard
    You can now reference .NET Framework libraries from .NET Standard libraries using Visual Studio 2017 15.3. This feature helps you migrate .NET Framework code to .NET Standard or .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 a .NET Framework library, enabling it to be still be used in new scenarios.
    We expect that this feature will be used most commonly from .NET Standard libraries. It also works for .NET Core apps and libraries. They can depend on .NET Framework libraries, too.
    The supported scenario is referencing a .NET Framework library that happens to only use types within the .NET Standard API set. Also, it is only supported for libraries that target .NET Framework 4.6.1 or earlier (even .NET Framework 1.0 is fine). If the .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 APIs,but not for the codepaths you use. In that case, you will need to invest singificantly in testing.

  9. Christian Sandöy
    Christian Sandöy avatar
    53 posts
    Member since:
    Aug 2005

    Posted 16 Aug 2017 Link to this post

    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

  10. Peter
    Admin
    Peter avatar
    1651 posts

    Posted 18 Aug 2017 Link to this post

    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
  11. Costa
    Costa avatar
    22 posts
    Member since:
    Mar 2014

    Posted 21 Sep 2017 in reply to Peter Link to this post

    Hello, please provide a simplest ASP.NET CORE 2 project with .cs  or .vb reports.
  12. Costa
    Costa avatar
    22 posts
    Member since:
    Mar 2014

    Posted 24 Sep 2017 in reply to Peter Link to this post

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

  13. Costa
    Costa avatar
    22 posts
    Member since:
    Mar 2014

    Posted 24 Sep 2017 in reply to Peter Link to this post

    Is it generally possible to display reports in HTML5 or ASP.NETCore apps from the class library without TRDP or TRDX files?
  14. Costa
    Costa avatar
    22 posts
    Member since:
    Mar 2014

    Posted 25 Sep 2017 in reply to Peter Link to this post

    Can I hope for an answer?
  15. Peter
    Admin
    Peter avatar
    1651 posts

    Posted 25 Sep 2017 Link to this post

    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
  16. Costa
    Costa avatar
    22 posts
    Member since:
    Mar 2014

    Posted 26 Sep 2017 in reply to Peter Link to this post

    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.

  17. Costa
    Costa avatar
    22 posts
    Member since:
    Mar 2014

    Posted 27 Sep 2017 in reply to Costa Link to this post

    I'm talking about the ASP-NETCore2Demo.zip project from your previous message.
  18. Peter
    Admin
    Peter avatar
    1651 posts

    Posted 27 Sep 2017 Link to this post

    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
  19. Costa
    Costa avatar
    22 posts
    Member since:
    Mar 2014

    Posted 28 Sep 2017 in reply to Peter Link to this post

    Thanks.
  20. Richard
    Richard avatar
    1 posts
    Member since:
    Sep 2016

    Posted 16 Nov 2017 Link to this post

    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.

  21. Senthil
    Senthil avatar
    6 posts
    Member since:
    Jul 2017

    Posted 28 Dec 2017 in reply to Richard Link to this post

    Thanks. This fixed. These guys yet to fix it. Super wasted a day on this. 
  22. Thomas
    Thomas avatar
    1 posts
    Member since:
    Jan 2016

    Posted 07 Jun 2018 Link to this post

    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 

     

  23. Todor
    Admin
    Todor avatar
    281 posts

    Posted 12 Jun 2018 Link to this post

    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
  24. Milon
    Milon avatar
    1 posts
    Member since:
    May 2018

    Posted 03 Sep 2018 in reply to Todor Link to this post

    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

     

  25. Todor
    Admin
    Todor avatar
    281 posts

    Posted 05 Sep 2018 Link to this post

    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
Back to Top