A Microsoft platform for building and publishing apps for Windows devices.
Hello @Hong ,
I see this is most likely a first-chance exception that the debugger catches the runtime handles it internally, which is why the app continues to work fine.
To stop it from breaking into the debugger:
- Press
Ctrl+Alt+Eto open Exception Settings. - Find
System.IO.FileLoadExceptionunder Common Language Runtime Exceptions. - Uncheck it.
Could you also confirm whether the exception appears only in Debug, or also in a Release build with .NET Native enabled? If it shows up in Release, the fix is different it would involve adding a runtime directive to .rd.xml, and I can help with that.
Hope this helps! If my explanation and information I provided were useful, I would greatly appreciate it if you could follow the instructions here so others with the same problem can benefit as well.