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.