System.IO.FileNotFoundException: '' when running app after deployment to Android device

-- -- 922 Reputation points
2023-09-06T16:47:44.3733333+00:00

Hi

I have suddenly started getting 'System.IO.FileNotFoundException: ''' error. Have deleted bin and obj folders and ran Clean but no luck. How can I fix this please?

Thanks

Regards

System.IO

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,510 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. -- -- 922 Reputation points
    2023-09-06T18:38:21.9833333+00:00

    Deleting the .vs folder for the solution fixed it.

    1 person found this answer helpful.
    0 comments No comments

  2. Venus Graph 0 Reputation points
    2024-07-27T05:15:22.9566667+00:00

    I follow this link for pdf generation

    https://github.com/jfversluis/MauiGeneratePdfSample

    But my Image is not loading and I always get a File not found error

    "dotnet_bot.png not found" even though that file is located in resource/images. Can any help with that

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.