使用此代码停止响应我的程序。
Assembly assembly = Assembly.LoadFrom(@"C:\test\test.exe");
Type[] typesInAssembly = assembly.GetTypes();
在调试模式下,此代码在第二行执行时停止响应。
我更改test.exe
为空的 WindowsformApplication.exe,它可以工作。我不知道为什么它不能与test.exe
. 我在调试 Locals 部分放置了断点并检查了 Locals,我看到了一些错误图标,我将它们粘贴在下面。我希望有人能帮助我解决这个问题。
DefinedTypes Function evaluation timed out. System.Collections.Generic.IEnumerable<System.Reflection.TypeInfo>
EntryPoint Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. System.Reflection.MethodInfo
EscapedCodeBase Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. string
Evidence Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. System.Security.Policy.Evidence
ExportedTypes Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. System.Collections.Generic.IEnumerable<System.Type>
FullName Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. string
GlobalAssemblyCache Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. bool
HostContext Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. long
ImageRuntimeVersion Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. string
IsDynamic Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. bool
IsFullyTrusted Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. bool
Location Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. string
ManifestModule Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. System.Reflection.Module
Modules Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. System.Collections.Generic.IEnumerable<System.Reflection.Module>
PermissionSet Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. System.Security.PermissionSet
ReflectionOnly Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. bool
SecurityRuleSet Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. System.Security.SecurityRuleSet