Exception In Blazor App When Using Stimulsoft.Dashboards.Web.NetCore
Posted: Thu Nov 11, 2021 9:20 pm
I'm currently using the Stimulsoft.Reports.Blazor to so I can show Stimulsoft Reports in my Blazor Applications.
This works fine, but when trying to load a dashboard, it throws exception, and the fix I found in this forum was to install Stimulsoft.Dashboards.Web. Ok, I'm on .Net Core 5 and the nuget has two options for this:
Stimulsoft.Dashboards.Web
AND Stimulsoft.Dashboards.Web.NetCore
Seeing as I'm currently using .Net Core (5) I used the .NetCore version.
When spinning up the app I get the below exception.
Exception:
System.Reflection.ReflectionTypeLoadException
HResult=0x80131602
Message=Unable to load one or more of the requested types.
Could not load type 'Stimulsoft.System.Web.UI.WebControls.Panel' from assembly 'Stimulsoft.System.Web, Version=2021.4.3.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a'.
--- RESEARCHING ISSUE ---
After inspecting the packages, I noticed that the two assemblies below BOTH reference Stimulsoft.System.Web.dll, BUT different versions (it seems).
Stimulsoft.Dashboards.Web.NetCore (2021.4.3)
...\.nuget\packages\stimulsoft.reports.web.netcore\2021.4.3\lib\netstandard2.1\Stimulsoft.System.Web.dll
Stimulsoft.Reports.Blazor (2021.4.3) - (which contains the StiBlazorViewer to show in blazor app)
...\.nuget\packages\stimulsoft.reports.blazor\2021.4.3\lib\net5.0\Stimulsoft.System.Web.dll
Is there a workaround or way to get past this?
I need the ability to show both reports and dashboards in my Blazor Application.
This works fine, but when trying to load a dashboard, it throws exception, and the fix I found in this forum was to install Stimulsoft.Dashboards.Web. Ok, I'm on .Net Core 5 and the nuget has two options for this:
Stimulsoft.Dashboards.Web
AND Stimulsoft.Dashboards.Web.NetCore
Seeing as I'm currently using .Net Core (5) I used the .NetCore version.
When spinning up the app I get the below exception.
Exception:
System.Reflection.ReflectionTypeLoadException
HResult=0x80131602
Message=Unable to load one or more of the requested types.
Could not load type 'Stimulsoft.System.Web.UI.WebControls.Panel' from assembly 'Stimulsoft.System.Web, Version=2021.4.3.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a'.
--- RESEARCHING ISSUE ---
After inspecting the packages, I noticed that the two assemblies below BOTH reference Stimulsoft.System.Web.dll, BUT different versions (it seems).
Stimulsoft.Dashboards.Web.NetCore (2021.4.3)
...\.nuget\packages\stimulsoft.reports.web.netcore\2021.4.3\lib\netstandard2.1\Stimulsoft.System.Web.dll
Stimulsoft.Reports.Blazor (2021.4.3) - (which contains the StiBlazorViewer to show in blazor app)
...\.nuget\packages\stimulsoft.reports.blazor\2021.4.3\lib\net5.0\Stimulsoft.System.Web.dll
Is there a workaround or way to get past this?
I need the ability to show both reports and dashboards in my Blazor Application.