help for framework 3.5 RRS feed

  • Question

  • Hello,

    session.Source.Kernel.FileIORead += delegate (FileIOReadWriteTraceData data)
                            var process = Process.GetProcessById(data.ProcessID);
                            var fullPath = process.MainModule.FileName;
                            var fileName = process.MainModule.ModuleName;
                            Console.Out.WriteLine(process.ProcessName+"   "+data.ProcessID +"     "+ fileName);

                        }catch(Exception )
                           var process = Process.GetProcessById(data.ProcessID);

                            Console.Out.WriteLine("Read:" + data.ProcessID);

    when i'm running this code and getting an exception of system.componentmodel.win32 what could be the problem and how i can fix it ? can you help me if you know something


    Tuesday, October 10, 2017 5:50 PM

All replies

  • Hi Rajat Kinkhabwala,

    Thank you for posting here.

    According to your description, I reproduce the error. 

    Please change the Platform of the project. Refer to the following gif.

    And you could try to run the application as administrator.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, October 11, 2017 8:14 AM