Enterprise Instrumentation Framework

  • Thread starter Thread starter Mathieu
  • Start date Start date
M

Mathieu

So I try to make a small lab on EIF, I block on the level of the file
EnterpriseInstrumentation.config
I create a project, Console Application, I add two references =>
Microsoft.EnterpriseInstrumentation ,
Microsoft.EnterpriseInstrumentation.Schema.

This is the code source :

namespace HelloWorld{


class Class1{

public static EventSource es = new EventSource("EIF Component");

[STAThread]

static void Main(string[] args){

TraceMessageEvent.Raise(es,"Hello ... : "+ DateTime.Now.ToString());

}

}

}

nothing very complicated.

Then, task 3 it is required : In %LAB_ROOT%\Source\Exercices\HelloWorld
there is a file called EnterpriseInstrumentation.config.Copy the file to the
Debug folder of the HelloWorld project.
Is the difficulty I do not have a file EnterpriseInstrumentation.config just
while compiling.
Somebody could it help me ?
How can I to create this file ?

Thanks you



Mathieu
 
Mathieu,

You do not require an EnterpriseInstrumentation.config file at compile
time, only at run time.

To get one of these files you can either use InstalUtil.exe (providing
you have correctly incorporated the ProjectInstaller into your class),
or create one from scratch. To create from scratch you can either
write the Xml yourself or use the Configuration API from the EIF
libraries.

All of this is well described in the EIF help file which by default
installs to C:\Program Files\Microsoft Enterprise
Instrumentation\Docs\EnterpriseInstrumentation.chm

Hope this helps

Simon
 
Back
Top