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

Issues while running Telerik Reporting on Mac OS

5 Answers 574 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 18 Jan 2019, 10:21 PM

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.

5 Answers, 1 is accepted

Sort by
0
Boris
Top achievements
Rank 1
answered on 19 Jan 2019, 08:29 AM
The crush appears only on Mac OS
0
Nasko
Telerik team
answered on 23 Jan 2019, 12:58 PM
Hi Boris,

Telerik Reporting relies on some platform specific features which is why the .NET Core support is limited to Windows and Linux, as described in the .NET Core Support help article.

Regards,
Nasko
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
Boris
Top achievements
Rank 1
answered on 24 Jan 2019, 10:43 AM
To be honest I'm not sure what's the difference between Linux and MacOS runtime in libgdiplus usage. I'm interested in OS X support of Telerik Reporting. Please let me know if I can assist you with testing of that.
0
Nasko
Telerik team
answered on 24 Jan 2019, 12:18 PM
Hello Boris,

The stack trace of the error points us to a code snippet which can be fixed for the next release of the product. We will most probably release it with the next internal build of Telerik Reporting. However, we have not tested the .NET Core support on OS X and cannot guarantee that all will work correctly. You can post a feature request for OS X support in our Ideas & Feedback portal.

Regards,
Nasko
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
Nasko
Telerik team
answered on 31 Jan 2019, 09:36 AM
Hi Boris,

We have managed to fix and test internally the basic functionality of the Reporting run-time on MacOS. The fix will be released with the next official release of the product, which is scheduled for late February.

Regards,
Nasko
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
Boris
Top achievements
Rank 1
Answers by
Boris
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or