ETW - tracing ADO.NET events doesn't seem to work
-
I'm trying to work out a procedure for logging applications that use ADO.NET and / or Entity Framework (5). So ETW looks very promising, especially after reading this article: [^] But unfortunately I don't get ETW working on either of my 2 dev machines. Here is the configuration I did: * I created the correct entries in the registry (.../BidInterface/Loader :Path=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\AdoNetDiag.dll) * I did "mofcomp all.mof", registering all the ADO.NET components for WMI. * logman query providers lists all the required providers * I created a file ctrl.guid.adonet referring to: {7ACDCAC8-8947-F88A-E51A-24018F5129EF} 0xFFFFFFFF 5 ADONETDIAG.ETW {914ABDE2-171E-C600-3348-C514171DE148} 0xFFFFFFFF 5 System.Data.1 {A68D8BB7-4F92-9A7A-D50B-CEC0F44C4808} 0xFFFFFFFF 5 System.Data.Entity.1 {C9996FA5-C06F-F20C-8A20-69B3BA392315} 0xFFFFFFFF 5 System.Data.SNI.1 {DCD90923-4953-20C2-8708-01976FB15287} 0x00000000 0 System.Data.OracleClient.1 Then I start logging, run my simple test app and stop logging: logman start adonettrace -pf .\ctrl.guid.adonet -o adonettrace.etl -ets C:\Data\Projects\TestETW\TestETW\bin\Debug\TestETW.exe logman stop adonettrace -ets Looking at the adonettrace.etl file: 8KB (which is the equivalent of an empty log file). I'm running in W8, VS2012. Any suggestions would be highly appreciated! Thanks, Gaston
-
I'm trying to work out a procedure for logging applications that use ADO.NET and / or Entity Framework (5). So ETW looks very promising, especially after reading this article: [^] But unfortunately I don't get ETW working on either of my 2 dev machines. Here is the configuration I did: * I created the correct entries in the registry (.../BidInterface/Loader :Path=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\AdoNetDiag.dll) * I did "mofcomp all.mof", registering all the ADO.NET components for WMI. * logman query providers lists all the required providers * I created a file ctrl.guid.adonet referring to: {7ACDCAC8-8947-F88A-E51A-24018F5129EF} 0xFFFFFFFF 5 ADONETDIAG.ETW {914ABDE2-171E-C600-3348-C514171DE148} 0xFFFFFFFF 5 System.Data.1 {A68D8BB7-4F92-9A7A-D50B-CEC0F44C4808} 0xFFFFFFFF 5 System.Data.Entity.1 {C9996FA5-C06F-F20C-8A20-69B3BA392315} 0xFFFFFFFF 5 System.Data.SNI.1 {DCD90923-4953-20C2-8708-01976FB15287} 0x00000000 0 System.Data.OracleClient.1 Then I start logging, run my simple test app and stop logging: logman start adonettrace -pf .\ctrl.guid.adonet -o adonettrace.etl -ets C:\Data\Projects\TestETW\TestETW\bin\Debug\TestETW.exe logman stop adonettrace -ets Looking at the adonettrace.etl file: 8KB (which is the equivalent of an empty log file). I'm running in W8, VS2012. Any suggestions would be highly appreciated! Thanks, Gaston
What's the CPU setting for your TestETW project?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
What's the CPU setting for your TestETW project?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
AnyCPU, so running in 64 bits. I have created both entries in the registry (for 32-bit apps and 64-bit apps)
-
AnyCPU, so running in 64 bits. I have created both entries in the registry (for 32-bit apps and 64-bit apps)
GastonV wrote:
AnyCPU, so running in 64 bits.
If you've got the "prefer 32-bit" option[^] checked, it will still be running as 32-bit. Did you run the
mofcomp adonetdiag.mof
command from the 32-bit framework directory as well?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
GastonV wrote:
AnyCPU, so running in 64 bits.
If you've got the "prefer 32-bit" option[^] checked, it will still be running as 32-bit. Did you run the
mofcomp adonetdiag.mof
command from the 32-bit framework directory as well?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Hi Richard, The solution was indeed compiling the 32-bit version of the MOF files, so you solved my problem! Thanks for your support, Gaston