我需要分析我的WPF
4.0 应用程序。当我尝试在WPF Performance Suite 4.0
(从Windows SDK 7.1
)中打开它时,它会抛出一个BadImageFormatException
:
它抱怨更新的运行时,所以我跑来corflags
检查exe
运行时版本。它说:
Version : v4.0.30319
CLR Header: 2.5
PE : PE32
CorFlags : 1
ILONLY : 1
32BIT : 0
Signed : 0
怎么了?为什么我无法WPF
在分析器中打开此应用程序?
更新
尝试了 JeffRSon 的建议,该建议产生了另一个例外:
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Microsoft.WpfPerformance.ToolAssembly..ctor(Assembly assembly)
at Microsoft.WpfPerformance.Controls.AddToolDialog.ScanAssembly(String filename)
at Microsoft.WpfPerformance.Controls.AddToolDialog.ScanAssembly()