Stimulsoft.System.Web.UI.WebControls.Panel not found

Stimulsoft Reports.BLAZOR discussion
Post Reply
Marco1970
Posts: 10
Joined: Mon Apr 24, 2023 12:17 pm

Stimulsoft.System.Web.UI.WebControls.Panel not found

Post by Marco1970 »

Hi Team from Stimulsoft,
I am trying to show a stireport in blazor with .net 7.
But when I add the stireport viewer, the application does not load.
Here ist my code and the error message:

StiReportViewer.razor:

@page "/stireport"
@using Stimulsoft.Base
@using Stimulsoft.Report
@using Stimulsoft.Report.Blazor
@using Stimulsoft.Report.Web

<StiBlazorViewer Report="@Report" Options="@Options"></StiBlazorViewer>

using Stimulsoft.Report;
using Stimulsoft.Report.Blazor;
using Stimulsoft.Report.Web;

StiReportViewer.razor.cs:

namespace Atlas3000.Frontend.Pages.Reporting;

public partial class StiReportViewer
{
private StiReport Report { get; set; }

private StiBlazorViewerOptions Options { get; set; }

protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();

Options = new StiBlazorViewerOptions
{
Appearance =
{
FullScreenMode = true,
ScrollbarsMode = true
},
Toolbar =
{
ShowOpenButton = false,
DisplayMode = StiToolbarDisplayMode.Separated
}
};

Report = new StiReport();
}
}

ErrorMessage:

System.Reflection.ReflectionTypeLoadException: 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=2023.2.8.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a'.
Could not load type 'Stimulsoft.System.Web.UI.WebControls.Panel' from assembly 'Stimulsoft.System.Web, Version=2023.2.8.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a'.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at Microsoft.AspNetCore.Mvc.Controllers.ControllerFeatureProvider.PopulateFeature(IEnumerable`1 parts, ControllerFeature feature)
at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature)
at Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerActionDescriptorProvider.GetControllerTypes()
at Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerActionDescriptorProvider.GetDescriptors()
at Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.UpdateCollection()
at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.Initialize()
at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.GetChangeToken()
at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
at Microsoft.AspNetCore.Mvc.Routing.ActionEndpointDataSourceBase.Subscribe()
at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.GetOrCreateDataSource(IEndpointRouteBuilder endpoints)
at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.MapControllers(IEndpointRouteBuilder endpoints)
at Program.<Main>$(String[] args) in D:\Atlas3000\Atlas3000.Frontend\Program.cs:line 83
System.TypeLoadException: Could not load type 'Stimulsoft.System.Web.UI.WebControls.Panel' from assembly 'Stimulsoft.System.Web, Version=2023.2.8.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a'.
System.TypeLoadException: Could not load type 'Stimulsoft.System.Web.UI.WebControls.Panel' from assembly 'Stimulsoft.System.Web, Version=2023.2.8.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a'.

Thanks a lot!
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: Stimulsoft.System.Web.UI.WebControls.Panel not found

Post by Max Shamanov »

Hello,

Please send us a sample project that reproduces the issue.

Thank you.
Marco1970
Posts: 10
Joined: Mon Apr 24, 2023 12:17 pm

Re: Stimulsoft.System.Web.UI.WebControls.Panel not found

Post by Marco1970 »

Sadly, I can't create a sample application with the error. The sampe app always works, only my production app not.

When I remove the lines

app.MapControllers(); and
app.MapFallbackToPage("/_Host");

from program.cs the app will start.

I just added the nuget package (either Reports.Blazor or Dashboards.Blazor) to the application. Thats enough to crash it. Just added the nuget package.

Maybe you have any idea?
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: Stimulsoft.System.Web.UI.WebControls.Panel not found

Post by Max Shamanov »

Hello,

Please check our Blazor samples at the following link:
https://github.com/stimulsoft/Samples-R ... zor-Server

Thank you.
Post Reply