I\'ve been trying to work with ETW in .net 4.0.
I have started using Microsoft EventSource Library 1.0.4-beta (https://www.nuget.org/packages/Microsoft.Diagnostics.Trac
I was able find a solution for this. Now i am able to register and publish the events to the eventviewer.
http://naveensrinivasan.com/2010/03/17/using-clr-4-0-event-tracing-for-windows-etw-along-with-application-etw/
Thanks.