question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blazor.MonoRuntime.targets error code -532462766

See original GitHub issue

This section of Blazor.MonoRuntime.targets is problematic and unstable. <!-- Run the linker and put the results in /obj/<<configuration>>/<<targetframework>>/blazor/blazor/linker --> <Exec Command="dotnet &quot;$(MonoLinkerPath)&quot; $(_BlazorLinkerAdditionalOptions) @(_BlazorFolderLookupPaths, ' ') -o &quot;$(BlazorIntermediateLinkerOutputPath)&quot; @(_BlazorAssemblyDescriptorFiles, ' ') @(_BlazorAssembliesToLink, ' ')" />

I’m not sure if it’s an issue related to .NET, Blazor, Preview 6/7, or Entity Framework. It seems to happen after installing EF as in the top side of this article: https://code.msdn.microsoft.com/Creating-An-SPA-Using-0b76bd13

Sometimes the solution will build and launch fine, sometimes it won’t and it produces this error:

MSB3073 The command [the result of everything pasted above] exited with code -532462766.

I’ll restart VS and sometimes it builds fine, sometimes it doesn’t.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
AkumaKHIcommented, Aug 5, 2019

I was having the same problem when working with Telerik UI component. I got the solution from Telerik docs.

Open the Client .csproj file and ensure that the following switch is present. At the moment the IL Linker needs to be disabled because of an issue in Mono. <PropertyGroup> <!-- there may be other elements here --> <BlazorLinkOnBuild>false</BlazorLinkOnBuild> </PropertyGroup>

This certainly fixed the problem. hope it will help to others as well (even if they’re not using Telerik UI)

2reactions
danroth27commented, Mar 22, 2020

Everything should be working now with the latest bits and workshop updates. Let us know though if you’re still hitting issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blazor Mono.Linker.LoadException
I am trying to import a .NET Framework 3rd party class library into my Blazor WASM application. I figured if the class library...
Read more >
Compiling Blazor client fails - Developer Community
MonoRuntime.targets(259,5): error : ILLink failed with exit code -532462766. 1>Done building project “DynamicNoiseMap.
Read more >
Linker error on HttpClient Blazor 3.2.0 Declined - Not Valid
Bug reported in Blazor - General Query / New Component - Linker error on ... MonoRuntime.targets(258,5): error : ILLink failed with exit code...
Read more >
Errors when compiling in release mode of Visual Studio but ...
MonoRuntime.targets 326. Severity Code Description Project File Line Suppression State Error ILLink failed with exit code -532462766.
Read more >
Blazor WebAssembly 3.2.0 Preview 3 release now available
To debug a Blazor WebAssembly app in Visual Studio Code: ... MonoRuntime.targets(247,5): error : Unhandled exception. Mono.Cecil.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found