Open Closed

Blazor app inicialization error, component view property name i s cut off #3015


User avatar
0
miroslava.pekarova@m2ms.sk created
  • ABP Framework version: v4.4.4
  • UI type: Blazor
  • DB provider: EF Core

Hello, I would like to ask you for solution of an issue we are dealing with right now.

We have Blazor Server app which is shutting down due inactivity. Sometimes application is not initialized propely. As we can see in stack trace application cannot find Object of type 'Microsoft.AspNetCore.Components.Authorization.AuthorizeView' does not have a property matching the name 'Autho'. Property name is cut off 'Autho'

Any suggestions what is wrong?

Thank you.

  • Exception message and stack trace:

2022-05-02 10:50:18.290 +02:00 [WRN] Unhandled exception rendering component: Object of type 'Microsoft.AspNetCore.Components.Authorization.AuthorizeView' does not have a property matching the name 'Autho'. System.InvalidOperationException: Object of type 'Microsoft.AspNetCore.Components.Authorization.AuthorizeView' does not have a property matching the name 'Autho'. at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.ThrowForUnknownIncomingParameterName(Type targetType, String parameterName) at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target) at Microsoft.AspNetCore.Components.ParameterView.SetParameterProperties(Object target) at Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(ParameterView parameters) at Microsoft.AspNetCore.Components.Rendering.ComponentState.SetDirectParameters(ParameterView parameters) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.UpdateRetainedChildComponent(DiffContext& diffContext, Int32 oldComponentIndex, Int32 newComponentIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForFramesWithSameSequence(DiffContext& diffContext, Int32 oldFrameIndex, Int32 newFrameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange1 oldTree, ArrayRange1 newTree) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment) at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry) at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue() 2022-05-02 10:50:18.296 +02:00 [ERR] Unhandled exception in circuit 'E9howUforkuDbndpSJBXiK-owBWHUHqsla8UCpQ2bVw'. System.InvalidOperationException: Object of type 'Microsoft.AspNetCore.Components.Authorization.AuthorizeView' does not have a property matching the name 'Autho'. at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.ThrowForUnknownIncomingParameterName(Type targetType, String parameterName) at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target) at Microsoft.AspNetCore.Components.ParameterView.SetParameterProperties(Object target) at Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(ParameterView parameters) at Microsoft.AspNetCore.Components.Rendering.ComponentState.SetDirectParameters(ParameterView parameters) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.UpdateRetainedChildComponent(DiffContext& diffContext, Int32 oldComponentIndex, Int32 newComponentIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForFramesWithSameSequence(DiffContext& diffContext, Int32 oldFrameIndex, Int32 newFrameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange1 oldTree, ArrayRange1 newTree) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment) at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry) at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

... some info logs and then

2022-05-02 10:50:23.474 +02:00 [ERR] An unhandled exception has occurred while executing the request. Volo.Abp.AbpException: Could not find file '/_c' at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileInfo(IBundlerContext context, String file) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetAndMinifyFileContent(IBundlerContext context, String fileName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileContentConsideringMinification(IBundlerContext context, String fileName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.Bundle(IBundlerContext context) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.<>c__DisplayClass16_0.<GetBundleFilesAsync>b__0() at System.Collections.Generic.AbpDictionaryExtensions.<>c__DisplayClass7_02.<GetOrAdd>b__0(TKey k) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at System.Collections.Generic.AbpDictionaryExtensions.GetOrAdd[TKey,TValue](ConcurrentDictionary2 dictionary, TKey key, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleCache.GetOrAdd(String bundleName, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetBundleFilesAsync(BundleConfigurationCollection bundles, String bundleName, IBundler bundler) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetScriptBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperScriptService.GetBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelperContext context, TagHelperOutput output, List1 bundleItems, String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService2.ProcessAsync(TagHelperContext context, TagHelperOutput output) at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count) at M2MS.Mondi.ePM.Blazor.Pages.Pages__Host.<ExecuteAsync>b__16_1() in C:\GitLab\Runner\builds\rBn-kAxN\0\m2ms\management-portals\epm\src\M2MS.Mondi.ePM.Blazor\Pages_Host.cshtml:line 40 at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync() at M2MS.Mondi.ePM.Blazor.Pages.Pages__Host.ExecuteAsync() in C:\GitLab\Runner\builds\rBn-kAxN\0\m2ms\management-portals\epm\src\M2MS.Mondi.ePM.Blazor\Pages_Host.cshtml:line 26 at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|29_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeResultFilters>g__Awaited|27_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

and so on .... Could not find file '/_c'

Could not find file '/_content/V'

Could not find file '/_content/V�'

Could not find file '/_content/Vo'

Same application, different environment, similar issue but in Identity app. (An unhandled exception has occurred while executing the request. Volo.Abp.AbpException: Could not find file '/Themes/Lepton/Glob�lepton5.css')


9 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    • Steps to reproduce the issue:"
  • User Avatar
    0
    miroslava.pekarova@m2ms.sk created

    hi

    • Steps to reproduce the issue:"

    Run the application. Let application shut down and then random once in x app inicializations this happens.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Let application shut down

    Can you explain it in detail? Thanks

  • User Avatar
    0
    miroslava.pekarova@m2ms.sk created

    At application start (run after new deploy or if application was shut down/sleep due inactivity) this error sometimes occurs. It seems random, we can't reproduce it.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    It is Blazor Server right? This happens in Blazor Server only. Can you try clearing the entire cache, local storage, and cookies for localhost domain, then restart the application and try again?

    It might be happening because of web applications that ran on localhost before.

  • User Avatar
    0
    miroslava.pekarova@m2ms.sk created

    I dont think this happened to me locally. Logs are from production environment.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Then can you provide steps to reproduce?

  • User Avatar
    0
    michal.cadecky@m2ms.sk created

    Hi, we are not able to reproduce this right now. We are trying to investigate it further but it happens randomly. The only thing we are quite sure with is that it happens after sudden application shudown and followed by application (re)start (happens during new initialization).

    The application is hosted in IIS and what seems strage is that even though the Application Pool is set to be always running, the application still somehow went idle/off. I am not sure if this is some kind of Blazor Server behavior or it is caused by application instability (but there is no logs regarding crash in log file nor in event viewer).

    What we are able to observe are these strange strings cut-offs. It looks like it always begins with some request been malformed and following redirect to error page (?) fails with repetitive issues to fetch some content files - it is searching with adding character by character to the final url - '_content/Volo.Abp.' etc (seems to always fail for LeptonTheme content files). Sometimes the application is able to locate the resource and recovers from the erroneous state but it takes time and also CPU resources.

    There are also some SignalR disconnects in the logs but the issue is affecting all users as the application is not responsive while in this state (but we still need to confirm this when the issue happens again).

    We would like to consult with you what we can do more to investigate this further and have more information about the issue. Maybe this sounds familiar to you as you might have already experienced this kind of error before and may have some ideas.

    Unfortunately we are not able to provide more information regarding the steps to reproduce right now.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The application is hosted in IIS and what seems strage is that even though the Application Pool is set to be always running,

    You can try to run it without IIS.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11