all groups > dotnet distributed apps > march 2004 >
You're in the

dotnet distributed apps

group:

Enterprise Instrumentation framework


Enterprise Instrumentation framework Mathieu
3/19/2004 5:14:00 PM
dotnet distributed apps:
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

Re: Enterprise Instrumentation framework Juan Ignacio Gelos
3/20/2004 10:36:13 AM
If I got what you said correctly, you do have the file
EnterpriseInstrumentation.config in the project, but it's not there after
compiling the application...

If so: Right-click on your project, Properties, Common Properties, Build
Events,
Paste this line into the 'Post-build Event Command Line'
copy "..\..\EnterpriseInstrumentation.config" "$(TargetDir)"

Otherwise you only need to copy the file from one of the samples and put it
in your project (and insert the previous command as a post-build event).

Regards,
Juan


[quoted text, click to view]

Re: Enterprise Instrumentation framework Mathieu
3/20/2004 11:14:31 PM
Thanks for your help.

So, when I copy "..\..\EnterpriseInstrumentation.config" "$(TargetDir)"
and build, there is an error => Failure of the event after generation


But when I copy the file from one of the sample and put it in my
project(HelloWorld2) and use this command "EnterpriseInstrumentation.config"
"$(TargetDir)"

it's ok but with the same line => <instrumentedApp name="HelloWorld"
mode="released" />

Why not with HelloWorld2 ? It's important ?

(HelloWorld is the project with EntepriseInstrumentation.config)

I do not understand all, can you help me more?

How to create an EnterpriseInstrumentation.config file ?

what's "..\..\ " of the command ???



Thank you very much


Mathieu

"Juan Ignacio Gelos" <msnews@juanignaciogelos.com> a écrit dans le message
de news:OP$ATBoDEHA.688@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Re: Enterprise Instrumentation framework Mathieu
3/21/2004 5:43:28 PM

Sorry I had forget the Copy

Thanks you.

Mathieu


AddThis Social Bookmark Button