15 instantiations of FileLoadException
Aspire.Hosting.RemoteHost.Tests (1)
ResolverDiagnosticsTests.cs (1)
98[new FileLoadException("synthetic loader exception: simulated Aspire.TypeSystem mismatch")]);
Microsoft.DotNet.Cli.CoreUtils (2)
Resources\ManagedAssemblyIdentity.cs (2)
153throw new FileLoadException( 174throw new FileLoadException(
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));
37 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 (3)
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
355catch (Exception e) when ((e is FileNotFoundException || e is FileLoadException) && sdkResolver.GetType().Name.Equals("NuGetSdkResolver", StringComparison.Ordinal))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1590catch (Exception e) when (e is ArgumentException or TypeLoadException or FileNotFoundException or FileLoadException or BadImageFormatException)
Instance\TaskRegistry.UsingTaskInfo.cs (1)
278catch (FileLoadException)
Microsoft.Build.Framework (1)
Utilities\AssemblyNameExtension.cs (1)
195catch (FileLoadException)
Microsoft.Build.Tasks.Core (7)
AppConfig\DependentAssembly.cs (1)
96catch (System.IO.FileLoadException e)
AssemblyDependency\ReferenceTable.cs (4)
709catch (FileLoadException e) 790catch (FileLoadException) 841catch (FileLoadException) 1250catch (FileLoadException e)
AssemblyDependency\ResolveAssemblyReference.cs (1)
3189catch (System.IO.FileLoadException)
AssemblyDependency\Resolver.cs (1)
218catch (FileLoadException)
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
348if (e is FileLoadException && e.InnerException is InteractiveAssemblyLoaderException)
Microsoft.DotNet.Cli.CoreUtils (2)
Resources\StringResourceManager.cs (2)
138/// <exception cref="FileLoadException">The external owner identity does not match.</exception> 177/// <exception cref="FileLoadException">The external owner identity does not match.</exception>
Microsoft.VisualStudio.TestPlatform.Common (2)
ExtensionFramework\TestPluginDiscoverer.cs (1)
101catch (FileLoadException e)
Utilities\AssemblyResolver.cs (1)
195catch (FileLoadException ex)
mscorlib (1)
parent\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)
193catch (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\net12.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)