Trace listener configuration file

  • Thread starter Thread starter Noel Justus
  • Start date Start date
N

Noel Justus

When i launch my application my config file for the trace listener is
simply removed.

I have, appropriately I believe, named the config file as the
application name and appended .config. For ex: ap name="Hello.exe" and
config file is "Hello.exe.config"....and it is placed in the bin
directory.

Cannot find any reference to this and would appreciate some help.
Thanks
 
You should add app.config to the project, when you run/build the project the
hello.exe.config file will be created in the correct directory.

Peter
 
Hello,

I agree with Peter and you should perform the following steps:

1. Right-click your project in Solution Explorer.
2. Select "Add" -> "Add New Item".
3. Double-click "Application configuration file", and an appropriate app
config file will be created and added to your project.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top