Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FluentProfileMenu does not work in Azure #2037

Closed
franksandersen opened this issue May 12, 2024 · 4 comments
Closed

FluentProfileMenu does not work in Azure #2037

franksandersen opened this issue May 12, 2024 · 4 comments
Labels
needs: repro code or repository The provided description or code is insufficient to repro the issue

Comments

@franksandersen
Copy link

franksandersen commented May 12, 2024

I am using FluentProfileMenu with visual studio, blazor wasm, .net 8 and the latest Microsoft.FluentUI.AspNetCore.Components, Version=4.7.2.24124 from nuget

Everything is working fine with visual studio on my dev machine. After deployment to Azure I get this error:

Unhandled exception rendering component: Could not resolve type with token 010000d9 from typeref (expected class 'Microsoft.FluentUI.AspNetCore.Components.FluentProfileMenu' in assembly 'Microsoft.FluentUI.AspNetCore.Components, Version=4.7.2.24124, Culture=neutral, PublicKeyToken=null')

My project file(s) already contains this (due to messagebox problems after deployed to Azure):

	<ItemGroup>
		<TrimmerRootAssembly Include="Microsoft.FluentUI.AspNetCore.Components" />
	</ItemGroup>

My profile menu code:

          <FluentProfileMenu 
                 StatusTitle="@_appData.User.Person?.FullName"
                 HeaderLabel="@_appData.User.Person?.Company?.Name"
                 FullName="@_appData.User.Person?.FullName"
                 EMail="@context?.User?.Identity?.Name"
                 ImageSize="40px"
                 FooterLink=""   
                 HeaderButton="Logg ut"
                 OnHeaderButtonClick="Logout"
                 Style="min-width: 330px;">
             </FluentProfileMenu> 
@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label May 12, 2024
@vnbaaij vnbaaij added needs: repro code or repository The provided description or code is insufficient to repro the issue and removed triage New issue. Needs to be looked at labels May 13, 2024
@vnbaaij
Copy link
Collaborator

vnbaaij commented May 13, 2024

Hi, we need minimal complete, working example code. We do not have capacity to construct reproduction code for every issue.
Help us to help you!

@franksandersen
Copy link
Author

franksandersen commented May 14, 2024

I understand, I will try to find time soon. In the meantime I post the complete error here:

blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not resolve type with token 0100007f from typeref (expected class 'Microsoft.FluentUI.AspNetCore.Components.FluentProfileMenu' in assembly 'Microsoft.FluentUI.AspNetCore.Components, Version=4.7.2.24124, Culture=neutral, PublicKeyToken=null')
System.TypeLoadException: Could not resolve type with token 0100007f from typeref (expected class 'Microsoft.FluentUI.AspNetCore.Components.FluentProfileMenu' in assembly 'Microsoft.FluentUI.AspNetCore.Components, Version=4.7.2.24124, Culture=neutral, PublicKeyToken=null')
   at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder , RenderFragment , Exception& )
Dt @ blazor.webassembly.js:1
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
xl @ dotnet.runtime.8.0.4.ogva3chynz.js:3
$func209 @ 00a838ca:0x188d9
$func104 @ 00a838ca:0x14db1
$func97 @ 00a838ca:0x81d7
$func131 @ 00a838ca:0x15fbe
$func2859 @ 00a838ca:0xc360a
$func2193 @ 00a838ca:0x9ae5f
$func2199 @ 00a838ca:0x9b752
$func2223 @ 00a838ca:0x9ddb4
$mono_wasm_invoke_method_bound @ 00a838ca:0x1e31db
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.4.7ozkce8x2d.js:8
kr @ dotnet.runtime.8.0.4.ogva3chynz.js:3
l.javaScriptExports.complete_task @ dotnet.runtime.8.0.4.ogva3chynz.js:3
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
Promise.then (async)
mo @ dotnet.runtime.8.0.4.ogva3chynz.js:3
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
xl @ dotnet.runtime.8.0.4.ogva3chynz.js:3
$func209 @ 00a838ca:0x188d9
$func104 @ 00a838ca:0x14db1
$func97 @ 00a838ca:0x81d7
$func131 @ 00a838ca:0x15fbe
$func2859 @ 00a838ca:0xc360a
$func2193 @ 00a838ca:0x9ae5f
$func2192 @ 00a838ca:0x9adef
$func1651 @ 00a838ca:0x79927
$func209 @ 00a838ca:0x1895d
$func104 @ 00a838ca:0x14db1
$func97 @ 00a838ca:0x81d7
$func131 @ 00a838ca:0x15fbe
$func2859 @ 00a838ca:0xc360a
$func2193 @ 00a838ca:0x9ae5f
$func2199 @ 00a838ca:0x9b752
$func2223 @ 00a838ca:0x9ddb4
$mono_wasm_invoke_method_bound @ 00a838ca:0x1e31db
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.4.7ozkce8x2d.js:8
kr @ dotnet.runtime.8.0.4.ogva3chynz.js:3
l.javaScriptExports.call_entry_point @ dotnet.runtime.8.0.4.ogva3chynz.js:3
Bc @ dotnet.runtime.8.0.4.ogva3chynz.js:3
callEntryPoint @ blazor.webassembly.js:1
mn @ blazor.webassembly.js:1
await in mn (async)
fn @ blazor.webassembly.js:1
An @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not resolve type with token 0100007f from typeref (expected class 'Microsoft.FluentUI.AspNetCore.Components.FluentProfileMenu' in assembly 'Microsoft.FluentUI.AspNetCore.Components, Version=4.7.2.24124, Culture=neutral, PublicKeyToken=null')
System.TypeLoadException: Could not resolve type with token 0100007f from typeref (expected class 'Microsoft.FluentUI.AspNetCore.Components.FluentProfileMenu' in assembly 'Microsoft.FluentUI.AspNetCore.Components, Version=4.7.2.24124, Culture=neutral, PublicKeyToken=null')
   at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder , RenderFragment , Exception& )
Dt @ blazor.webassembly.js:1
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
xl @ dotnet.runtime.8.0.4.ogva3chynz.js:3
$func209 @ 00a838ca:0x188d9
$func104 @ 00a838ca:0x14db1
$func97 @ 00a838ca:0x81d7
$func131 @ 00a838ca:0x15fbe
$func2859 @ 00a838ca:0xc360a
$func2193 @ 00a838ca:0x9ae5f
$func2199 @ 00a838ca:0x9b752
$func2223 @ 00a838ca:0x9ddb4
$mono_wasm_invoke_method_bound @ 00a838ca:0x1e31db
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.4.7ozkce8x2d.js:8
kr @ dotnet.runtime.8.0.4.ogva3chynz.js:3
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
endInvokeJSFromDotNet @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.then (async)
beginInvokeJSFromDotNet @ blazor.webassembly.js:1
vn @ blazor.webassembly.js:1
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
xl @ dotnet.runtime.8.0.4.ogva3chynz.js:3
$func209 @ 00a838ca:0x188d9
$func104 @ 00a838ca:0x14db1
$func97 @ 00a838ca:0x81d7
$func131 @ 00a838ca:0x15fbe
$func2859 @ 00a838ca:0xc360a
$func2193 @ 00a838ca:0x9ae5f
$func2199 @ 00a838ca:0x9b752
$func2223 @ 00a838ca:0x9ddb4
$mono_wasm_invoke_method_bound @ 00a838ca:0x1e31db
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.4.7ozkce8x2d.js:8
kr @ dotnet.runtime.8.0.4.ogva3chynz.js:3
l.javaScriptExports.complete_task @ dotnet.runtime.8.0.4.ogva3chynz.js:3
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
Promise.then (async)
mo @ dotnet.runtime.8.0.4.ogva3chynz.js:3
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
(anonymous) @ dotnet.runtime.8.0.4.ogva3chynz.js:3
xl @ dotnet.runtime.8.0.4.ogva3chynz.js:3
$func209 @ 00a838ca:0x188d9
$func104 @ 00a838ca:0x14db1
$func97 @ 00a838ca:0x81d7
$func131 @ 00a838ca:0x15fbe
$func2859 @ 00a838ca:0xc360a
$func2193 @ 00a838ca:0x9ae5f
$func2192 @ 00a838ca:0x9adef
$func1651 @ 00a838ca:0x79927
$func209 @ 00a838ca:0x1895d
$func104 @ 00a838ca:0x14db1
$func97 @ 00a838ca:0x81d7
$func131 @ 00a838ca:0x15fbe
$func2859 @ 00a838ca:0xc360a
$func2193 @ 00a838ca:0x9ae5f
$func2199 @ 00a838ca:0x9b752
$func2223 @ 00a838ca:0x9ddb4
$mono_wasm_invoke_method_bound @ 00a838ca:0x1e31db
Module._mono_wasm_invoke_method_bound @ dotnet.native.8.0.4.7ozkce8x2d.js:8
kr @ dotnet.runtime.8.0.4.ogva3chynz.js:3
l.javaScriptExports.call_entry_point @ dotnet.runtime.8.0.4.ogva3chynz.js:3
Bc @ dotnet.runtime.8.0.4.ogva3chynz.js:3
callEntryPoint @ blazor.webassembly.js:1
mn @ blazor.webassembly.js:1
await in mn (async)
fn @ blazor.webassembly.js:1
An @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1


@vnbaaij
Copy link
Collaborator

vnbaaij commented May 16, 2024

Hej Frank, we have a rule where issues get closed if no feedback is received in three days. Please create a new issue once reproduction code is available, Thanks.

@vnbaaij vnbaaij closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
@franksandersen
Copy link
Author

Thanks. I am lucky to say that this error went away after the latest .net 8.0.4 -> 8.0.5 packages upgrade. I tested this today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: repro code or repository The provided description or code is insufficient to repro the issue
Projects
None yet
Development

No branches or pull requests

2 participants