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

Error in InitializeComponent() System.IO.FileNotFoundException: '' When starting an application #26866

Open
andersondamasio opened this issue Dec 30, 2024 · 2 comments
Labels
platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@andersondamasio
Copy link

Description

Hello, since the first version of .NET Maui, we have had a problem that occurs when starting an application.

The error only occurs when "Common Language Runtime Exception" is turned on.

Common Language Runtime Exception is used a lot so that we can visualize exceptions that occur in the application, which is very important.

What bothers me the most is that this error still occurs in the .Net 9 version of Maui, making me wonder why there has not yet been a fix for such a visible point.

Steps to Reproduce

  1. Create a File > New .NET MAUI App
  2. "Common Language Runtime Exception" is turned on
  3. And you will see the error when starting on an Android device

Image

Link to public reproduction project repository

No response

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@andersondamasio andersondamasio added the t/bug Something isn't working label Dec 30, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@Ying-6 Ying-6 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage platform/android 🤖 labels Dec 31, 2024
@Ying-6
Copy link

Ying-6 commented Dec 31, 2024

This issue has been verified using Visual Studio 17.13.0 Preview 2.1 (9.0.21 & 9.0.14 & 8.0.100). Can repro this issue on Android device, but Android emulator works fine.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants