Hi @Giorgio Sfiligoi , Welcome to Microsoft Q&A,
These exceptions are handled internally by XmlSerializer and do not usually affect its normal operation. In some cases, these exceptions are caused by XmlSerializer when it tries to dynamically generate serialization assemblies, which is part of the normal operation of XmlSerializer.
In Visual Studio, you can configure the debugger to ignore these specific FileNotFoundException exceptions. This way, the debugger will not break when these exceptions are thrown.
You can generate serialization assemblies ahead of time. This prevents XmlSerializer from dynamically generating these assemblies at runtime, which reduces the occurrence of exceptions.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.