Skip to content

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

Open
@andersondamasio

Description

@andersondamasio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-architectureIssues with code structure, SDK structure, implementation detailsplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/enhancement ☀️New feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions