3 types derived from TypeLoadException
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\DllNotFoundException.cs (1)
15public class DllNotFoundException : TypeLoadException
src\libraries\System.Private.CoreLib\src\System\EntryPointNotFoundException.cs (1)
15public class EntryPointNotFoundException : TypeLoadException
src\libraries\System.Private.CoreLib\src\System\TypeAccessException.cs (1)
14public class TypeAccessException : TypeLoadException
28 instantiations of TypeLoadException
ErrorPageMiddlewareWebSite (1)
ErrorPageMiddlewareController.cs (1)
37new[] { new TypeLoadException("Custom Loader Exception.") });
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
251Return New TypeLoadException(Description)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\PropertyTabAttribute.cs (1)
134throw new TypeLoadException(SR.Format(SR.PropertyTabAttributeTypeLoadException, className));
System.Configuration.ConfigurationManager (2)
System\Configuration\TypeUtil.cs (2)
151throw new TypeLoadException(SR.Format(SR.TypeNotPublic, type.AssemblyQualifiedName)); 163throw new TypeLoadException(
System.Private.CoreLib (11)
src\System\Reflection\TypeNameResolver.CoreCLR.cs (10)
59throw new TypeLoadException(SR.Arg_TypeLoadNullStr); 156throw new TypeLoadException(SR.Arg_TypeLoadNullStr); 234throw new TypeLoadException(assembly is null ? 259throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName), typeName: escapedTypeName); 269throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName), typeName: escapedTypeName); 276throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName), typeName: escapedTypeName); 286throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName), typeName: escapedTypeName); 305throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveTypeFromAssembly, parsedName.FullName, runtimeAssembly.FullName), 340throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveNestedType, 379throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveTypeFromAssembly, parsedName.FullName, (requestingAssembly ?? coreLib).FullName),
src\System\TypeLoadException.CoreCLR.cs (1)
59*pResult = new TypeLoadException(className, assemblyName, messageArg, resourceId);
System.Reflection.MetadataLoadContext (7)
System\Reflection\TypeLoading\General\Assignability.cs (4)
259return coreTypes[CoreType.SByte] ?? throw new TypeLoadException(SR.Format(SR.CoreTypeNotFound, "System.SByte")); 262return coreTypes[CoreType.Int16] ?? throw new TypeLoadException(SR.Format(SR.CoreTypeNotFound, "System.Int16")); 265return coreTypes[CoreType.Int32] ?? throw new TypeLoadException(SR.Format(SR.CoreTypeNotFound, "System.Int32")); 268return coreTypes[CoreType.Int64] ?? throw new TypeLoadException(SR.Format(SR.CoreTypeNotFound, "System.Int64"));
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (1)
89return nestedType ?? throw new TypeLoadException(SR.Format(SR.Format(SR.TypeNotFound, outerType.ToString() + "[]", outerType.Assembly.FullName)));
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.GetTypeCore.cs (1)
62e = new TypeLoadException(SR.Format(SR.TypeNotFound, ns.ToUtf16().AppendTypeName(name.ToUtf16()), FullyQualifiedName));
System\Reflection\TypeLoading\Modules\RoResourceModule.cs (1)
56e = new TypeLoadException(SR.Format(SR.TypeNotFound, ns.ToUtf16().AppendTypeName(name.ToUtf16()), Assembly));
System.Resources.Extensions (3)
System\Resources\Extensions\DeserializingResourceReader.cs (2)
174throw new TypeLoadException(SR.Format(SR.TypeLoadException_CannotLoadConverter, type)); 188throw new TypeLoadException(SR.Format(SR.TypeLoadException_CannotLoadConverter, type));
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
95throw new TypeLoadException(SR.Format(SR.TypeLoadException_CannotLoadConverter, primitiveType));
System.Windows.Forms (2)
System\Resources\ResXDataNode.cs (2)
390throw new TypeLoadException( 618throw new TypeLoadException(string.Format(SR.TypeLoadExceptionShort, FileRefType));
19 references to TypeLoadException
Microsoft.AspNetCore.DataProtection (1)
TypeExtensions.cs (1)
38catch (TypeLoadException ex)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Formatters\InputFormatterExceptionPolicy.cs (1)
17/// application configuration problems such as <see cref="TypeLoadException"/>
Microsoft.Build.Framework (3)
ExceptionHandling.cs (1)
133e is TypeLoadException // thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type
Telemetry\TelemetryManager.cs (2)
103catch (Exception ex) when (ex is FileNotFoundException or FileLoadException or TypeLoadException) 128TypeLoadException)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
483Assert.Throws<TypeLoadException>(() => script.EvaluateAsync().GetAwaiter().GetResult());
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1213[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TypeLoadException))]
netstandard (1)
netstandard.cs (1)
2214[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TypeLoadException))]
PresentationCore (2)
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
194catch (Exception e) when (e is TypeLoadException
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\UISettings.cs (1)
123catch (Exception e) when (e is TypeLoadException || e is FileNotFoundException)
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\MetadataViewProvider.cs (1)
39catch (TypeLoadException ex)
System.Private.CoreLib (5)
src\System\Reflection\MdImport.cs (2)
288catch (TypeLoadException) 300catch (TypeLoadException)
src\System\RuntimeType.CoreCLR.cs (3)
1124catch (TypeLoadException) 3623catch (TypeLoadException e) 3666catch (TypeLoadException e)
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (1)
98catch (TypeLoadException) { }
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
879[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TypeLoadException))]
System.Windows.Forms.Primitives.Tests (1)
Interop\Oleaut32\VARIANTTests.cs (1)
5409AssertToObjectThrows<TypeLoadException>(variant);