You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeLoadException: Generic method or method in generic class is internal call, PInvoke, or is defined in a COM Import class.
at Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.Microsoft.AspNetCore.Components.Web.Internal.IInternalWebJSInProcessRuntime.InvokeJS(String identifier, String argsJson, JSCallResultType resultType, Int64 targetInstanceId)
at Microsoft.AspNetCore.Components.RenderTree.WebRenderer.AttachWebRendererInterop(IJSRuntime jsRuntime, JsonSerializerOptions jsonOptions, JSComponentInterop jsComponentInterop)
at Microsoft.AspNetCore.Components.RenderTree.WebRenderer..ctor(IServiceProvider serviceProvider, ILoggerFactory loggerFactory, JsonSerializerOptions jsonOptions, JSComponentInterop jsComponentInterop)
at Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer..ctor(IServiceProvider serviceProvider, ResourceAssetCollection resourceCollection, ILoggerFactory loggerFactory, JSComponentInterop jsComponentInterop)
at Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHost.RunAsyncCore(CancellationToken cancellationToken, WebAssemblyCultureProvider cultureProvider)
at blazorwasmruntime.Program.Main(String[] args)
It can help to gather more context of what is failing.
It creates megabytes of console noise that is able to kill chrome. I captured just few lines before the failure
SD: MT::FindDispatchImpl: searching Microsoft.AspNetCore.Components.Web.Internal.IInternalWebJSInProcessRuntime.
SD: VCSM::Resolver: (start) looking up interface method in Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime
SD: MT::FindDispatchImpl: searching Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.
SD: VCSM::Resolver: (end) looked up overridden interface method Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime::Microsoft.AspNetCore.Components.Web.Internal.IInternalWebJSInProcessRuntime.InvokeJS
SD: MT::FindDispatchImpl: searching Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.
In PreStubWorker for Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime::Microsoft.AspNetCore.Components.Web.Internal.IInternalWebJSInProcessRuntime.InvokeJS
DoPrestub: method 0x633b2a8
In PrepareILBasedCode, calling JitCompileCode
Looking up Microsoft.JSInterop.JSCallResultType by name.
Looking up Microsoft.JSInterop.JSInProcessRuntime by name.
ML::FM pMT:0x633a214 for InvokeJS sig:0x776454 sigLen:9
MT::MethodIterator created for Microsoft.JSInterop.JSInProcessRuntime.
ML::FM Considering Microsoft.JSInterop.JSInProcessRuntime::Invoke, pMD:0x633a048
ML::FM Considering Microsoft.JSInterop.JSInProcessRuntime::.ctor, pMD:0x633a0e4
ML::FM Considering Microsoft.JSInterop.JSInProcessRuntime::InvokeJS, pMD:0x633a0c0
ML::FM Considering Microsoft.JSInterop.JSInProcessRuntime::InvokeJS, pMD:0x633a09c
In PreStubWorker for Microsoft.JSInterop.WebAssembly.WebAssemblyJSRuntime::InvokeJS
DoPrestub: method 0x633a484
In PrepareILBasedCode, calling JitCompileCode
Looking up Microsoft.JSInterop.JSCallResultType by name.
PHASEDLOAD: LoadTypeHandleForTypeKey for type WebAssembly.JSInterop.InternalCalls to level LOADED 31
PHASEDLOAD: shard contains:
LoadTypeHandle: Loading Class from Module 0x633871c token 2000006
PHASEDLOAD: Creating loading entry for type WebAssembly.JSInterop.InternalCalls
PHASEDLOAD: About to do incremental load of type WebAssembly.JSInterop.InternalCalls (0) from level BEGIN 2
Looking up System.Object by name.
Loading class "WebAssembly.JSInterop.InternalCalls" from module "Microsoft.JSInterop.WebAssembly.dll" in domain 0x0x2038ae0
Activity
dotnet-policy-service commentedon Dec 15, 2025
Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.
pavelsavara commentedon Dec 15, 2025
native stack trace
pavelsavara commentedon Dec 15, 2025
Microsoft.JSInterop.WebAssembly.WebAssemblyJSRuntime:InvokeJS(System.String,System.String,int,long)->WebAssembly.JSInterop.InternalCalls.InvokeJSJsonhttps://github.com/dotnet/aspnetcore/blob/8d324706c56d8e777de9ac9caadf0e5bca397160/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSRuntime.cs#L26
https://github.com/dotnet/aspnetcore/blob/8d324706c56d8e777de9ac9caadf0e5bca397160/src/Components/WebAssembly/JSInterop/src/InternalCalls.cs#L11
pavelsavara commentedon Dec 15, 2025
Roslyn+JSImport generated code
dotnet-policy-service commentedon Dec 15, 2025
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
radekdoulik commentedon Jan 5, 2026
@pavelsavara please try to run it with these env variables to get log info from LOADER and CLASSLOADER
It can help to gather more context of what is failing.
pavelsavara commentedon Jan 6, 2026
It creates megabytes of console noise that is able to kill chrome. I captured just few lines before the failure
pavelsavara commentedon Jan 6, 2026
Now I think this is not a real issue.
The class
WebAssembly.JSInterop.InternalCallscontained[MethodImpl(MethodImplOptions.InternalCall)]until dotnet/aspnetcore#62755I guess this problem would go away once we flow the binaries.