i need profile wpf 4.0 application. when try open in wpf performance suite 4.0 (from windows sdk 7.1) throws badimageformatexception:

it complains newer runtime, ran corflags on exe check runtime version. says:
version : v4.0.30319 clr header: 2.5 pe : pe32 corflags : 1 ilonly : 1 32bit : 0 signed : 0 what's wrong? why can't open wpf application in profiler?
update
tried jeffrson's suggestion produced exception:
system.reflection.reflectiontypeloadexception: unable load 1 or more of requested types. retrieve loaderexceptions property more information. @ system.reflection.runtimemodule.gettypes(runtimemodule module) @ system.reflection.assembly.gettypes() @ microsoft.wpfperformance.toolassembly..ctor(assembly assembly) @ microsoft.wpfperformance.controls.addtooldialog.scanassembly(string filename) @ microsoft.wpfperformance.controls.addtooldialog.scanassembly()
create file called wpfperf_managed.exe.config in c:\program files\microsoft windows performance toolkit\wpf performance suite or wherever wpf performance suite installed following content:
<?xml version="1.0"?> <configuration> <startup uselegacyv2runtimeactivationpolicy="true"> <supportedruntime version="v4.0" sku=".netframework,version=v4.0"/> </startup> </configuration> this enables side-by-side runtimes in 1 process.
restart wpf performance suite , load assembly.
Comments
Post a Comment