Home / Community & Support / Knowledge Base / RadControls for WinForms / General and Installation / Could not load file or assembly Telerik.WinControls.XmlSerializers

Could not load file or assembly Telerik.WinControls.XmlSerializers

Article Info

Rating: 4


Article information

Article relates to

 RadControls for WinForms 

Created by

 Nikolay Diyanov

Last modified

 Dec 12, 2011

Last modified by

 Nikolay Diyanov


PROBLEM

If you start your project in Debug mode, you may get  the following exception:

“The assembly with display name 'Telerik.WinControls.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.WinControls.XmlSerializers, Version=2011.3.11.1116, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' or one of its dependencies. The system cannot find the file specified.
File name: 'Telerik.WinControls.XmlSerializers, Version=2011.3.11.1116, Culture=neutral, PublicKeyToken=5bb2a467cbec794e'”



SOLUTION

Although this behavior may seem like an issue, it is the normal behavior of .NET Framework and it is expected. Here is a quite from the MSDN Forums regarding this exception:
"This exception is a part of the XmlSerializer's normal operation. It is expected and will be caught and handled inside of the Framework code. Just ignore it and continue. If it bothers you during debugging, set the Visual Studio debugger to only stop on unhandled exceptions instead of all exceptions."

Although this behavior is normal, you may not want to see the exception. As stated in the above paragraph, you can prevent the exception from being thrown. In order to do that, please navigate to Debug >> Exceptions from the main menu of Visual Studio. This will open the Exceptions window. Uncheck the Managed Debugging Assistance Thrown checkbox and you will not see the exception anymore.



For additional information on the topic, please refer to the following resources:

Comments

If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!

Please Sign In to rate this article.