double qoutes in App.Config

  • Thread starter Thread starter DraguVaso
  • Start date Start date
D

DraguVaso

hi,

I'm having troubles putting a string with double qoutes (") in it in an
application configuration file (App.Config).
The string i need to put in it is: '/profile "MS Exchange Settings" '

I tried it like this:

<add key="Argument" value="/profile "MS Exchange Settings""/>
<add key="Argument" value='/profile "MS Exchange Settings"'/>
<add key="Argument" value="/profile ""MS Exchange Settings"""/>
<add key="Argument" value="/profile """MS Exchange Settings""""/>
<add key="Argument" value="/profile """"MS Exchange Settings"""""/>

But none of them worked: they all gave an error.
Des anybody know how to do this,

thanks a lot,

Pieter
 
DraguVaso said:
hi,

I'm having troubles putting a string with double qoutes (") in it in
an application configuration file (App.Config).
The string i need to put in it is: '/profile "MS Exchange Settings" '

As it's an XML file, have you tried this:

<add key="Argument" value="/profile &quot;MS Exchange Settings&quot;"/>
 
The escapes for reserved characters in Xml are different from VB, for the quote it's: &quot;

Marcie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top