{
	"id": "a3c70edf-d129-4b0b-9b73-912b8697cbb7",
	"created_at": "2026-04-06T00:18:02.38058Z",
	"updated_at": "2026-04-10T03:20:19.419801Z",
	"deleted_at": null,
	"sha1_hash": "0b0f2d0af4e203168ab2dea3b0851764ddeeb419",
	"title": "Assembly.Load Method (System.Reflection)",
	"llm_title": "",
	"authors": "",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 54659,
	"plain_text": "Assembly.Load Method (System.Reflection)\r\nBy dotnet-bot\r\nArchived: 2026-04-05 17:21:50 UTC\r\nSource:\r\nAssembly.CoreCLR.cs\r\nSource:\r\nAssembly.CoreCLR.cs\r\nSource:\r\nAssembly.CoreCLR.cs\r\nSource:\r\nAssembly.CoreCLR.cs\r\nSource:\r\nAssembly.CoreCLR.cs\r\nLoads an assembly with the specified name.\r\npublic static System.Reflection.Assembly Load(string assemblyString);\r\nParameters\r\nassemblyString\r\nString\r\nThe long or short form of the assembly name.\r\nReturns\r\nThe loaded assembly.\r\nExceptions\r\nassemblyString is a zero-length string.\r\nassemblyString is not found.\r\nA file that was found could not be loaded.\r\nassemblyString is not a valid assembly for the currently loaded runtime.\r\nhttps://learn.microsoft.com/dotnet/api/system.reflection.assembly.load\r\nPage 1 of 3\n\nExamples\r\nThe following example loads an assembly given its fully qualified name, and lists all the types contained in the\r\nspecified assembly. For information about how to obtain the fully qualified assembly name, see Assembly Names.\r\nusing System;\r\nusing System.Reflection;\r\nclass Class1\r\n{\r\n public static void Main()\r\n {\r\n // You must supply a valid fully qualified assembly name.\r\n Assembly SampleAssembly = Assembly.Load\r\n (\"SampleAssembly, Version=1.0.2004.0, Culture=neutral, PublicKeyToken=8744b20f8da049e3\");\r\n // Display all the types contained in the specified assembly.\r\n foreach (Type oType in SampleAssembly.GetTypes()) {\r\n Console.WriteLine(oType.Name);\r\n }\r\n }\r\n}\r\nRemarks\r\nIn .NET Core/.NET 5+, the target assembly will be loaded into the current AssemblyLoadContext or into the\r\nAssemblyLoadContext.CurrentContextualReflectionContext context if it's set. For more information on assembly\r\nloading, see Managed assembly loading algorithm.\r\nTo load the correct assembly, it's recommended to call the Load method by passing the long form of the\r\nassembly name. The long form of an assembly name consists of its simple name (such as \"System\" for the\r\nSystem.dll assembly) along with its version, culture, public key token, and optionally its processor architecture. It\r\ncorresponds to the assembly's FullName property. The following example illustrates the use of a long name to load\r\nthe System.dll assembly for .NET Framework 4:\r\nusing System;\r\nusing System.Reflection;\r\npublic class Example\r\n{\r\n public static void Main()\r\n {\r\n string longName = \"system, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\";\r\n Assembly assem = Assembly.Load(longName);\r\n if (assem == null)\r\n Console.WriteLine(\"Unable to load assembly...\");\r\nhttps://learn.microsoft.com/dotnet/api/system.reflection.assembly.load\r\nPage 2 of 3\n\nelse\r\n Console.WriteLine(assem.FullName);\r\n }\r\n}\r\n// The example displays the following output:\r\n// system, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\r\nFileLoadException is thrown if assemblyString specifies the full assembly name, and the first assembly that\r\nmatches the simple name has a different version, culture, or public key token. The loader does not continue\r\nprobing for other assemblies that match the simple name.\r\nIn the .NET Framework version 2.0, processor architecture is added to assembly identity, and can be specified as\r\npart of assembly name strings. For example, \"ProcessorArchitecture=msil\". However, the recommended way to\r\nspecify an assembly name is to create an AssemblyName object and pass it to an appropriate overload of the Load\r\nmethod. See AssemblyName.ProcessorArchitecture.\r\nSee also\r\nAssemblyName\r\nLoadFrom(String)\r\nHow the Runtime Locates Assemblies\r\nApplies to\r\n.NET 11 and other versions\r\nSource: https://learn.microsoft.com/dotnet/api/system.reflection.assembly.load\r\nhttps://learn.microsoft.com/dotnet/api/system.reflection.assembly.load\r\nPage 3 of 3",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"MITRE"
	],
	"references": [
		"https://learn.microsoft.com/dotnet/api/system.reflection.assembly.load"
	],
	"report_names": [
		"system.reflection.assembly.load"
	],
	"threat_actors": [],
	"ts_created_at": 1775434682,
	"ts_updated_at": 1775791219,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/0b0f2d0af4e203168ab2dea3b0851764ddeeb419.pdf",
		"text": "https://archive.orkl.eu/0b0f2d0af4e203168ab2dea3b0851764ddeeb419.txt",
		"img": "https://archive.orkl.eu/0b0f2d0af4e203168ab2dea3b0851764ddeeb419.jpg"
	}
}