Telerik Forums
Reporting Forum
2 answers
937 views

I install the latest release of reporting (2019 r1). I try put report in my .net core application. I follow the instruction of the reporting document. Add a controller and a viewer page in my application. But I call the webapi, I got a error as follow:

{"Message":"An error has occurred.","ExceptionMessage":"Object reference not set to an instance of an object.","ExceptionType":"System.NullReferenceException","StackTrace":" at Telerik.Reporting.Services.Engine.ResourcesEngine.GetResource(String folder, String name) in c:\\temp\\reporting\\RBuild-13280\\Reporting_Build\\Source\\Code\\Telerik.Reporting\\Services.Engine\\ResourcesEngine.cs:line 30\r\n at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.GetResource(String folder, String resourceName) in c:\\temp\\reporting\\RBuild-13280\\Reporting_Build\\Source\\Code\\Telerik.Reporting.Services.AspNetCore.Core\\ReportsControllerBase.Resources.cs:line 92\r\n at lambda_method(Closure , Object , Object[] )\r\n at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)\r\n at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()"}

 

and I access the viewer page. the error as follow:

Cannot access the Reporting REST service. (serviceUrl = '../api/reports/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)

 

what can I do.

 

 

 

Silviya
Telerik team
 answered on 31 Jan 2019
13 answers
1.1K+ views

Hello,

in my webproject I have integrated a reporting feature.

Please see the attached file!

Now I want to replace the listview with a dropdownmenu.

How can I do this?

I have not found a possibility to configure it.

In this example I have only two items, but in other cases there are more then two.

By the way: How can I rename the Preview-Button?

 

 

 

 

 

 

Simon
Top achievements
Rank 1
 answered on 31 Jan 2019
5 answers
808 views

Hi

We've just updated our project for using Telerik Reporting 2019R1.

The update looks amazing! 

Our project is configured for dotnetcore-2.2 target framework and works prefect on Windows.

But unfortunately it crashes when I'm trying to open a page with Report Viewer.

I see the message: Cannot access the Reporting REST service. (serviceUrl = '/api/reports/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)

Here is the log output:

info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/api/reports/formats  
warn: Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware[2]
      AcceptLanguageHeaderRequestCultureProvider returned the following unsupported UI Cultures 'en-us'.
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Route matched with {action = "GetDocumentFormats", controller = "Reports"}. Executing action ERP.Web.Controllers.ReportsController.GetDocumentFormats (ERP.Web)
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method ERP.Web.Controllers.ReportsController.GetDocumentFormats (ERP.Web) - Validation state: Valid
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action method ERP.Web.Controllers.ReportsController.GetDocumentFormats (ERP.Web), returned result Microsoft.AspNetCore.Mvc.JsonResult in 123.9889ms.
info: Microsoft.AspNetCore.Mvc.Formatters.Json.Internal.JsonResultExecutor[1]
      Executing JsonResult, writing value of type 'System.Collections.Generic.List`1[[Telerik.Reporting.Services.Engine.ExtensionInfo, Telerik.Reporting, Version=13.0.19.116, Culture=neutral, PublicKeyToken=a9d7983dfcc261be]]'.

Unhandled Exception:
 
Unhandled Exception: Unhandled Exception: 
Unhandled Exception: 
Unhandled Exception: 
Unhandled Exception: 
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStaSystem.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()rt()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext execution
System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.Wo
Process finished with exit code 6.

Nasko
Telerik team
 answered on 31 Jan 2019
0 answers
63 views

Hello,

I'm Making  grouped report with crosstab according to the following layout:

 

ParentUnit

  SonUnit

ParentOption

  SonOption

SUM(data

ParentUnit2
  SonUnit
ParentOption
  SonOption
SUM(data)

 

The datasource i am using is flat ({parentunit, sonunit, parentoption, sonoption, sum(data)})

Report generation takes too much time 

can you give advice how report can be optimized.

thanks

tamuna
Top achievements
Rank 1
 asked on 31 Jan 2019
1 answer
108 views

Hi

I have very large report which has over 60k controls, so it becomes almost impossible for me to handle. The main problem occurs when designing page loaded. It shows OutOfMemory Error. Please help me divide report into multiple parts so that i can manage them easily.

 

Thanks in advance.

Nasko
Telerik team
 answered on 30 Jan 2019
3 answers
146 views

Hello,

I am missing the datatype double in dropdownlist of the property "Type".

I become errors in my sourcecode when I try to convert from float to double.

So, I need that datatype.

It is possible to expand the dropdownlist with the datatype double?

Why is double be ommitted? I think it is important.

 

 

Silviya
Telerik team
 answered on 29 Jan 2019
4 answers
666 views
Hello

I'm using Telerik.Reporting (Q3 2012 build 6.2.12.1123) for a MVC2 C# project.

Is it possible to use Radiobuttons instead of Checkboxes in a ReportView? Are there any examples?
I've got a boolean value which I want to show as a Radiobutton (True/False).


Jobi
Top achievements
Rank 1
 answered on 29 Jan 2019
1 answer
123 views

I have a report with a Crosstab on it. In Group Explorer, there is a single Parent Row group with one child (the details).  

My issue is that I can't seem to control the size of the Group Footer row - Can Grow is set to false (for the row and all text boxes within), yet it always matches the size of the detail section which can be huge. 

Todor
Telerik team
 answered on 28 Jan 2019
1 answer
701 views

We have a report generated using Telerik Standalone designer where we use CSV data sources. Sometimes these data sources contain Asian characters. Our default font is "Segoe UI" which does not support these characters when generating the PDF file. Is there a way that we can define a secondary font when generating a PDF file so when a PDF is generated it will identify these characters are not available in the primary font and switch to the secondary font? 

Thank you. 

Todor
Telerik team
 answered on 25 Jan 2019
1 answer
147 views

Hello,
I'm creating a report using something similar to the following classes:

public class Point
{
    public double X { get; set; }
    public double Y { get; set; }
}
 
public class Series
{
    public List<Point> Points { get; set; }
}
 
public class MultipleSeries
{
    public string Header { get; set; }
 
    //There could be any number of these
    public List<Series> Series { get; set; }
}
 
public class ManyMultipleSeries
{
    public List<MultipleSeries> ManySeries { get; set; }
}

 

Basically, the main report will bind to 'ManyMultipleSeries'. This class will have a list of 'MultipleSeries', which are bound to a sub report that contains the chart. The 'MultipleSeries' class could contain any number of 'Series' that need to be displayed in the chart. I could not find any way of creating a dynamic number of series like this in the docs. Thanks for any help.

Todor
Telerik team
 answered on 25 Jan 2019
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?