Issues while running Telerik Reporting on Mac OS

6 posts, 0 answers
  1. Boris
    Boris avatar
    3 posts
    Member since:
    Sep 2015

    Posted 18 Jan Link to this post

    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.

  2. Boris
    Boris avatar
    3 posts
    Member since:
    Sep 2015

    Posted 19 Jan in reply to Boris Link to this post

    The crush appears only on Mac OS
  3. Alena
    Admin
    Alena avatar
    1049 posts

    Posted 23 Jan Link to this post

    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
  4. Boris
    Boris avatar
    3 posts
    Member since:
    Sep 2015

    Posted 24 Jan in reply to Alena Link to this post

    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.
  5. Alena
    Admin
    Alena avatar
    1049 posts

    Posted 24 Jan Link to this post

    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
  6. Alena
    Admin
    Alena avatar
    1049 posts

    Posted 31 Jan Link to this post

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