Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. trouble with string in app.config

trouble with string in app.config

Scheduled Pinned Locked Moved Visual Basic
help
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oakleaf
    wrote on last edited by
    #1

    I am trying to specify a company name in a var within the app.config file. Problem: The company name is "Fetch & Co. LCC" The program balks when it hits the "&" symbol in the string. Remove the "&" ---- works fine. This has got to be something simple... Additional info: If I try to put the string in the assembly info file (as ProgramTitle) The title will be blank. Thanks for any help.

    O 1 Reply Last reply
    0
    • O oakleaf

      I am trying to specify a company name in a var within the app.config file. Problem: The company name is "Fetch & Co. LCC" The program balks when it hits the "&" symbol in the string. Remove the "&" ---- works fine. This has got to be something simple... Additional info: If I try to put the string in the assembly info file (as ProgramTitle) The title will be blank. Thanks for any help.

      O Offline
      O Offline
      oakleaf
      wrote on last edited by
      #2

      For those who may run into similar problem: So I kept digging...er googling and finally came up with the correct search term... "illegal characters in app.config" Solution: The replacement for the illegal character "&" is "& a m p ;" (remove the surrounding quotes and spaces! Ignore HTML and PRE did not work for display purposes). This works fine. Thanks to anyone who may have been trying to find an answer to my question. -- modified at 11:46 Monday 21st August, 2006

      S 1 Reply Last reply
      0
      • O oakleaf

        For those who may run into similar problem: So I kept digging...er googling and finally came up with the correct search term... "illegal characters in app.config" Solution: The replacement for the illegal character "&" is "& a m p ;" (remove the surrounding quotes and spaces! Ignore HTML and PRE did not work for display purposes). This works fine. Thanks to anyone who may have been trying to find an answer to my question. -- modified at 11:46 Monday 21st August, 2006

        S Offline
        S Offline
        Stephen McGuire
        wrote on last edited by
        #3

        Not come across that particular problem in a config file, but have had similar problem with inserting company names in an Excel worksheet header. Solution was to have two &'s e.g. "Fetch && Co. LLC" Steve

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups