13 instantiations of FileLoadException
Aspire.Hosting.RemoteHost.Tests (1)
ResolverDiagnosticsTests.cs (1)
98[new FileLoadException("synthetic loader exception: simulated Aspire.TypeSystem mismatch")]);
PresentationCore (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (1)
807return new System.IO.FileLoadException(SR.MilErr_UnsupportedVersion, exceptionForHR);
System.Private.CoreLib (4)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
84throw new FileLoadException(SR.InvalidAssemblyName, name.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
783return new System.IO.FileLoadException(); 909return new System.IO.FileLoadException
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (1)
205throw new IO.FileLoadException(SR.InvalidAssemblyName, _inputString.ToString());
System.Private.TypeLoader (1)
Internal\Reflection\Execution\AssemblyBinderImplementation.cs (1)
120preferredException = new FileLoadException(SR.Format(SR.FileLoadException_RefDefMismatch, refName.FullName, defName.Version, refName.Version));
System.Private.Xml (2)
System\Xml\Serialization\XmlSerializer.cs (2)
251throw new FileLoadException(SR.Format(SR.FailLoadAssemblyUnderPregenMode, serializerName)); 608throw 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);
System.Speech (1)
Internal\AlphabetConverter.cs (1)
207throw new FileLoadException(SR.Get(SRID.CannotLoadResourceFromManifest, resourceName, assembly.FullName));
34 references to FileLoadException
Aspire.Hosting.RemoteHost (3)
CodeGeneration\CodeGenerationDiagnostic.cs (2)
177case FileLoadException fle: 250or FileLoadException
IntegrationLoadContext.cs (1)
103catch (FileLoadException ex)
dotnet-svcutil-lib (1)
CommandProcessorOptions.cs (1)
184catch (FileLoadException fle)
Microsoft.Build (1)
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
354catch (Exception e) when ((e is FileNotFoundException || e is FileLoadException) && sdkResolver.GetType().Name.Equals("NuGetSdkResolver", StringComparison.Ordinal))
Microsoft.Build.Framework (1)
Utilities\AssemblyNameExtension.cs (1)
192catch (FileLoadException)
Microsoft.Build.Tasks.Core (7)
AppConfig\DependentAssembly.cs (1)
96catch (System.IO.FileLoadException e)
AssemblyDependency\ReferenceTable.cs (4)
699catch (FileLoadException e) 780catch (FileLoadException) 831catch (FileLoadException) 1219catch (FileLoadException e)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2804catch (System.IO.FileLoadException)
AssemblyDependency\Resolver.cs (1)
214catch (FileLoadException)
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
348if (e is FileLoadException && e.InnerException is InteractiveAssemblyLoaderException)
Microsoft.VisualStudio.TestPlatform.Common (2)
ExtensionFramework\TestPluginDiscoverer.cs (1)
101catch (FileLoadException e)
Utilities\AssemblyResolver.cs (1)
195catch (FileLoadException ex)
Mono.Cecil (1)
Mono.Cecil.Cil\Symbols.cs (1)
1075 } catch (FileLoadException) {
mscorlib (1)
src\runtime\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))]
NuGet.Common (1)
ConcurrencyUtilities.cs (1)
202catch (FileLoadException)
PresentationFramework (2)
System\Windows\Documents\Serialization\SerializerProvider.cs (1)
160catch (FileLoadException)
System\Windows\Documents\WpfPayload.cs (1)
345catch (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\runtime\src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (1)
90_message = FileLoadException.FormatFileLoadExceptionMessage(_fileName, HResult);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
66_message = FileLoadException.FormatFileLoadExceptionMessage(FileName, HResult);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
373catch (FileLoadException)
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (1)
100catch (FileLoadException) { }
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
307[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.FileLoadException))]
System.Speech (1)
Internal\ObjectToken\ObjectToken.cs (1)
293if (e is MissingMethodException || e is TypeLoadException || e is FileLoadException || e is FileNotFoundException || e is MethodAccessException || e is MemberAccessException || e is TargetInvocationException || e is InvalidComObjectException || e is NotSupportedException || e is FormatException)
System.Xaml (1)
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
296catch (FileLoadException ex)