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
24 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 (7)
src\System\Reflection\RuntimeAssembly.cs (1)
233throw new TypeLoadException(SR.Format(SR.ClassLoad_General /* TypeLoad_TypeNotFoundInAssembly */, typeName, FullName));
src\System\Reflection\TypeNameResolver.CoreCLR.cs (6)
55throw new TypeLoadException(SR.Arg_TypeLoadNullStr); 140throw new TypeLoadException(SR.Arg_TypeLoadNullStr); 214throw new TypeLoadException(assembly is null ? 229throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName)); 270throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveNestedType, 307throw 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)
104throw 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)
249e 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)
249e 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 (1)
ExceptionHandling.cs (1)
249e is TypeLoadException // thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type
Microsoft.Build.Utilities.Core (1)
ExceptionHandling.cs (1)
249e 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());
Microsoft.CodeAnalysis.Features (1)
SemanticSearch\AbstractSemanticSearchService.cs (1)
366catch (TypeLoadException e)
Microsoft.CodeAnalysis.UnitTests (1)
Analyzers\AnalyzerFileReferenceAppDomainTests.cs (1)
113Assert.NotNull(exception as TypeLoadException);
MSBuild (1)
ExceptionHandling.cs (1)
249e 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)
249e 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)
195catch (Exception e) when (e is TypeLoadException
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\UISettings.cs (1)
120catch (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)
1104catch (TypeLoadException) 3607catch (TypeLoadException e) 3650catch (TypeLoadException e)
System.Private.Windows.Core (1)
System\Private\Windows\Core\BinaryFormat\Deserializer\DefaultTypeResolver.cs (1)
92catch (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)
842[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TypeLoadException))]
System.Windows.Forms.Primitives.Tests (1)
Interop\Oleaut32\VARIANTTests.cs (1)
5409AssertToObjectThrows<TypeLoadException>(variant);