473,382 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to define multiple flags in a config file?

I have trace configuration data in my config file and I want to specify
outoption flags like this:
<code>
traceOutputOptions="Callstack | DateTime" />

</code>

This throws an exception becuase it can't be parsed. I have never seen how
to combine flags in a config file. Is it possible?
Apr 5 '06 #1
2 4083

"sklett" <sk****@mddirect.com> wrote in message
news:O$**************@TK2MSFTNGP02.phx.gbl...
I have trace configuration data in my config file and I want to specify
outoption flags like this:
<code>
traceOutputOptions="Callstack | DateTime" />

</code>

This throws an exception becuase it can't be parsed. I have never seen
how to combine flags in a config file. Is it possible?


I haven't tried, but test it with a comma-delimited list instead (this is
how ToString method displays on a flag when you pass in the parameter to
display names on an flag enumeration).

HTH,
Mythran

Apr 5 '06 #2
Nice! :0)
That seems to have done it, thank you!

"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:uT**************@TK2MSFTNGP04.phx.gbl...

"sklett" <sk****@mddirect.com> wrote in message
news:O$**************@TK2MSFTNGP02.phx.gbl...
I have trace configuration data in my config file and I want to specify
outoption flags like this:
<code>
traceOutputOptions="Callstack | DateTime" />

</code>

This throws an exception becuase it can't be parsed. I have never seen
how to combine flags in a config file. Is it possible?


I haven't tried, but test it with a comma-delimited list instead (this is
how ToString method displays on a flag when you pass in the parameter to
display names on an flag enumeration).

HTH,
Mythran

Apr 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vlad | last post by:
Is there any way to install multiple instances of the same windows service designed with VS.NET 2003? I tried copying the binaries into a separate folder and then copying registry entries for the...
1
by: RK | last post by:
Hi I am working on C# application, where in I may require just one app.config for the C#.NET solution with multiple windows application projects. I know one web.config can be used for multiple...
1
by: DraguVaso | last post by:
Hi, I found some examples for storing the FormSettings of a Form in an XML-file, but none of these could match my criteria: What I am looking for is the possibility to save the FormSettings of...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
2
by: Harshdeep Mehta | last post by:
Hi all gurus, Myself Harshdeep Mehta, you can call me Harsh. I struck up in a situation where I need to define relative path in Web.Config. I.e. suppose I have a "Export" named folder, besides...
7
by: yurps | last post by:
Hello I have a couple of developers working on a web app. They all need to be able to change their local copy of the web.config file to run against their local databases. The copy in VSS needs to...
4
by: pinkfloydhomer | last post by:
I want to be able to do something like: myscript.py * -o outputfile and then have the shell expand the * as usual, perhaps to hundreds of filenames. But as far as I can see, getopt can only...
12
by: djhong | last post by:
Following is a snippet of a header file. Here, #define are inside struct evConn{} Any advantage of putting them inside struct block? Looks like there is no diff in scoping of each...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.