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
27 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 (10)
src\System\Reflection\TypeNameResolver.CoreCLR.cs (10)
59throw new TypeLoadException(SR.Arg_TypeLoadNullStr); 149throw new TypeLoadException(SR.Arg_TypeLoadNullStr); 227throw new TypeLoadException(assembly is null ? 252throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName), typeName: escapedTypeName); 262throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName), typeName: escapedTypeName); 269throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName), typeName: escapedTypeName); 279throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName), typeName: escapedTypeName); 298throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveTypeFromAssembly, parsedName.FullName, runtimeAssembly.FullName), 333throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveNestedType, 372throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveTypeFromAssembly, parsedName.FullName, (requestingAssembly ?? coreLib).FullName),
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));
24 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 (1)
ExceptionHandling.cs (1)
248e is TypeLoadException // thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type
Microsoft.Build.Engine.OM.UnitTests (1)
ExceptionHandling.cs (1)
248e is TypeLoadException // thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type
Microsoft.Build.Tasks.Core (3)
ExceptionHandling.cs (1)
248e is TypeLoadException // thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type
RegisterAssembly.cs (1)
300catch (TypeLoadException e)
UnregisterAssembly.cs (1)
203catch (TypeLoadException e)
Microsoft.Build.Utilities.Core (1)
ExceptionHandling.cs (1)
248e is TypeLoadException // thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
485Assert.Throws<TypeLoadException>(() => script.EvaluateAsync().GetAwaiter().GetResult());
MSBuild (1)
ExceptionHandling.cs (1)
248e is TypeLoadException // thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type
MSBuildTaskHost (1)
ExceptionHandling.cs (1)
248e is TypeLoadException // thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type
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 (4)
src\System\Reflection\MdImport.cs (1)
280catch (TypeLoadException)
src\System\RuntimeType.CoreCLR.cs (3)
1093catch (TypeLoadException) 3589catch (TypeLoadException e) 3632catch (TypeLoadException e)
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\Deserializer\DefaultTypeResolver.cs (1)
100catch (TypeLoadException) { }
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (1)
98catch (TypeLoadException) { }
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
865[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TypeLoadException))]
System.Windows.Forms.Primitives.Tests (1)
Interop\Oleaut32\VARIANTTests.cs (1)
5409AssertToObjectThrows<TypeLoadException>(variant);