MAUI Blazor: System.IO.FileNotFoundException: '' on InitializeComponent()
See original GitHub issueDescription
My Maui Blazor App on InitializeComponent() is throwing System.IO.FileNotFoundException: ‘’ on Visual Studio, even if I uncheck “Break when this exception type is thrown”
dotnet workload list
ID da carga de trabalho instalada Versão do Manifesto Origem da Instalação
------------------------------------------------------------------------------------
wasm-tools-net6 7.0.3/7.0.100 VS 17.6.33513.286
maccatalyst 16.2.1030/7.0.100 VS 17.6.33513.286
ios 16.2.1030/7.0.100 VS 17.6.33513.286
wasm-tools 7.0.3/7.0.100 VS 17.6.33513.286
maui-android 7.0.59/7.0.100 VS 17.6.33513.286
maui-windows 7.0.59/7.0.100 VS 17.6.33513.286
maui-maccatalyst 7.0.59/7.0.100 VS 17.6.33513.286
android 33.0.26/7.0.100 VS 17.6.33513.286
maui-ios 7.0.59/7.0.100 VS 17.6.33513.286
Use `dotnet workload search` para encontrar cargas de trabalho adicionais a serem instaladas.
Steps to Reproduce
Open the project in repository, run Debugging on Android device.
Link to public reproduction project repository
https://github.com/TonyHenrique/bug-2023-03-21
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 11.0 - API 30
Did you find any workaround?
No, because even if I uncheck “Break when this exception type is thrown” Visual Studio still stops at that line and I have to click the Continue button a few times.
Relevant log output
No response
Issue Analytics
- State:
- Created 6 months ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
New .Net MAUI App project throws 'The name ...
First things first The error is about the context that the InitializeComponent() resides in. Context is nothing but the nuget package dependency ...
Read more >Announcing .NET MAUI Preview 4 - .NET Blog
NET MAUI now has enough building blocks to build functional applications for all supported platforms, new capabilities to support running Blazor ...
Read more >FileNotFoundException is raised on an attempt to open ...
IO.FileNotFoundException Exception Info: System.IO.FileNotFoundException at System.ModuleHandle. ... InitializeComponent() at DevExpress.
Read more >VS extension error while creating solution with template ...
Windows.ResourceDictionary.Source' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.Windows.
Read more >C# System.IO.FileNotFoundException when creating ...
I try to debug but it crashes here and i cant seem to break inside the constructor. static void Main() { Application.EnableVisualstyles(); ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Duplicate of #7443
So I think the issue is related to satellite assemblies:
In this case, the
XmlReader
just happens to hit the same problem as: https://github.com/dotnet/maui/issues/7443Let me close this as duplicate, I’ll link to your example.