runtime: Hot reload - EnC: we do not support patching of existing PARAM table cols. token=0x08000d0e
Description
I have a large Blazor wasm hosted app and hot reload stopped working for some time ago.
Error: System.TypeLoadException: EnC: we do not support patching of existing PARAM table cols. token=0x08000d0e
at System.Reflection.Metadata.MetadataUpdater.ApplyUpdate(:5001/Assembly assembly, ReadOnlySpan`1 metadataDelta, ReadOnlySpan`1 ilDelta, ReadOnlySpan`1 pdbDelta)
at Microsoft.Extensions.HotReload.HotReloadAgent.ApplyDeltas(:5001/IReadOnlyList`1 deltas)
at Microsoft.AspNetCore.Components.WebAssembly.HotReload.WebAssemblyHotReload.ApplyHotReloadDelta(:5001/String moduleIdString, Byte[] metadataDelta, Byte[] ilDelta, Byte[] pdbBytes)
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(:5001/JSRuntime jsRuntime, DotNetInvocationInfo& callInfo, IDotNetObjectReference objectReference, String argsJson)
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.Invoke(:5001/JSRuntime jsRuntime, DotNetInvocationInfo& invocationInfo, String argsJson)
at Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.InvokeDotNet(:5001/String assemblyName, String methodIdentifier, String dotNetObjectId, String argsJson)
at qi (dotnet.7.0.11.sf8asx8yhf.js:5:80665)
at Ji (dotnet.7.0.11.sf8asx8yhf.js:5:80549)
at _Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_InvokeDotNet (_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_InvokeDotNet:30:5)
at Object.invokeDotNetFromJS (blazor.webassembly.js:1:45224)
at g (blazor.webassembly.js:1:1621)
at e.invokeMethod (blazor.webassembly.js:1:2670)
at Vt.Ke._internal.applyHotReload (blazor.webassembly.js:1:58767)
at aspnetcore-browser-refresh.js:140:35
at Array.forEach (<anonymous>)
at applyBlazorDeltas (aspnetcore-browser-refresh.js:138:14)
Reproduction Steps
Not possible, my app to large.
Expected behavior
Hot reload should complete and refresh the browser.
Actual behavior
Need to stop and start the project again.
Regression?
No response
Known Workarounds
No response
Configuration
Windows 11 Visual Studio v17.7.4 MS project assemblys v7.0.11 MudBlazor v6.11.0
Other information
Hot-reload is executed from Visual Studio and debug-mode No response
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 20 (13 by maintainers)
@solbster strange. I’m going to close the issue for now; please ping me or open a new issue if the problem shows up again. Thanks for helping me to investigate it!
@lambdageek, hot-reload has started working again. I don’t have an explanation for this, but the only thing I can think of is that new Windows updates were installed.
Thank you! I’ll take a look tomorrow
@lambdageek
I’ve uploaded some files for you to review on my private GitHub repository. You should now have access to the repository and the files I’ve added.
@lambdageek
I’m only modifying the HTML code using MudBlazor components. This can involve changing the text within a <MudText></MudText> component or adjusting the size of a <MudImage> component. I’m not making any changes within the @code block
Example