9 instantiations of FileLoadException
Microsoft.Build.Tasks.UnitTests (1)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
1064throw new FileLoadException("Could not load " + path);
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (1)
808return new System.IO.FileLoadException(SR.MilErr_UnsupportedVersion, exceptionForHR);
System.Private.CoreLib (2)
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
84throw new FileLoadException(SR.InvalidAssemblyName, name.ToString());
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (1)
194throw new IO.FileLoadException(SR.InvalidAssemblyName, _inputString.ToString());
System.Private.Xml (2)
System\Xml\Serialization\XmlSerializer.cs (2)
251throw new FileLoadException(SR.Format(SR.FailLoadAssemblyUnderPregenMode, serializerName)); 605throw new FileLoadException(SR.Format(SR.FailLoadAssemblyUnderPregenMode, serializerName));
System.Reflection.MetadataLoadContext (3)
System\Reflection\MetadataLoadContext.Loading.cs (1)
57throw new FileLoadException(SR.Format(SR.FileLoadDuplicateAssemblies, defName));
System\Reflection\MetadataLoadContext.Resolving.cs (1)
67throw new FileLoadException(SR.ExternalAssemblyReturnedByMetadataAssemblyResolver);
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
29throw new FileLoadException(SR.ModuleResolveEventReturnedExternalModule);
46 references to FileLoadException
dotnet-svcutil-lib (1)
CommandProcessorOptions.cs (1)
182catch (FileLoadException fle)
Microsoft.Build (4)
AssemblyNameExtension.cs (1)
192catch (FileLoadException)
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
332catch (Exception e) when ((e is FileNotFoundException || e is FileLoadException) && sdkResolver.GetType().GetTypeInfo().Name.Equals("NuGetSdkResolver", StringComparison.Ordinal))
LogMessagePacketBase.cs (1)
602catch (FileLoadException) when (i < 5)
ManagedFileSystem.cs (1)
71catch (FileLoadException ex)
Microsoft.Build.Engine.UnitTests (2)
AssemblyNameEx_Tests.cs (2)
327Assert.Throws<FileLoadException>(() => 339Assert.Throws<FileLoadException>(() =>
Microsoft.Build.Tasks.Core (8)
AppConfig\DependentAssembly.cs (1)
96catch (System.IO.FileLoadException e)
AssemblyDependency\ReferenceTable.cs (4)
667catch (FileLoadException e) 748catch (FileLoadException) 801catch (FileLoadException) 1187catch (FileLoadException e)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2604catch (System.IO.FileLoadException)
AssemblyDependency\Resolver.cs (1)
207catch (FileLoadException)
AssemblyNameExtension.cs (1)
192catch (FileLoadException)
Microsoft.Build.Tasks.UnitTests (2)
AssemblyNameEx_Tests.cs (2)
327Assert.Throws<FileLoadException>(() => 339Assert.Throws<FileLoadException>(() =>
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (5)
InteractiveSessionReferencesTests.cs (5)
765catch (FileLoadException fileLoadEx) when (fileLoadEx.InnerException is InteractiveAssemblyLoaderException) 833catch (FileLoadException fileLoadEx) when (fileLoadEx.InnerException is InteractiveAssemblyLoaderException) 901catch (FileLoadException fileLoadEx) when (fileLoadEx.InnerException is InteractiveAssemblyLoaderException) 969catch (FileLoadException fileLoadEx) when (fileLoadEx.InnerException is InteractiveAssemblyLoaderException) 1037catch (FileLoadException fileLoadEx) when (fileLoadEx.InnerException is InteractiveAssemblyLoaderException)
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
391if (e is FileLoadException && e.InnerException is InteractiveAssemblyLoaderException)
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
350if (e is FileLoadException && e.InnerException is InteractiveAssemblyLoaderException)
Microsoft.CodeAnalysis.UnitTests (1)
MetadataReferences\FusionAssemblyIdentityTests.cs (1)
224Assert.Throws<FileLoadException>(() => name.FullName);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (1)
96catch (FileLoadException)
MSBuild (2)
AssemblyNameExtension.cs (1)
192catch (FileLoadException)
LogMessagePacketBase.cs (1)
602catch (FileLoadException) when (i < 5)
MSBuildTaskHost (2)
AssemblyNameExtension.cs (1)
192catch (FileLoadException)
LogMessagePacketBase.cs (1)
602catch (FileLoadException) when (i < 5)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
323[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileLoadException))]
netstandard (1)
netstandard.cs (1)
918[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileLoadException))]
PresentationFramework (2)
System\Windows\Documents\Serialization\SerializerProvider.cs (1)
169catch (FileLoadException)
System\Windows\Documents\WpfPayload.cs (1)
344catch (System.IO.FileLoadException)
System.ComponentModel.Composition (5)
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (4)
57/// <exception cref="FileLoadException "> 113/// <exception cref="FileLoadException "> 170/// <exception cref="FileLoadException "> 234/// <exception cref="FileLoadException ">
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (1)
675catch (FileLoadException ex)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (1)
87_message = FileLoadException.FormatFileLoadExceptionMessage(_fileName, HResult);
src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
66_message = FileLoadException.FormatFileLoadExceptionMessage(FileName, HResult);
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
373catch (FileLoadException)
System.Private.Windows.Core (1)
System\Private\Windows\Core\BinaryFormat\Deserializer\DefaultTypeResolver.cs (1)
94catch (FileLoadException) { }
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (1)
100catch (FileLoadException) { }
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
303[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileLoadException))]
System.Xaml (1)
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
280catch (FileLoadException ex)