Quantcast
Channel: .NET Framework Setup and Servicing forum
Viewing all articles
Browse latest Browse all 3295

Could not load MyAssembly.XmlSerializers.dll. The system cannot find the file specified

$
0
0

I have recently installed Visual Studio 2012.

However, after the installation, a project that was previously working correctly in Visual Studio 2010 began throwing and crashing on the following error:

'System.TypeInitializationException: The type initializer for 'MyType' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'MyAssembly.XmlSerializers' or one of its dependencies. The system cannot find the file specified. at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

I did not upgrade the project to VS2012, I am running it out of VS2010 as before. I have not made any changes to the project itself. The only change was that I installed VS2012 (and .NET 4.5) on the machine. What could be causing this unexpected problem?


Viewing all articles
Browse latest Browse all 3295

Trending Articles