• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2328
  • Last Modified:

Parser Error Message: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 239, position 143.

I put this key on our web.config so that we can change error messeges from the web.config

    <add key="CategoryRequired_ErrorText" value="You must select a category.  <br><br><b>Please click the back button twice and select a category to continue on.</b>" />

I get this error:  Parser Error Message: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 239, position 143.

can you not put html strings in the web.config appsettings?
0
dba123
Asked:
dba123
  • 2
1 Solution
 
kraffayCommented:
You have to escape out the <, >, / characters.  Google on XML encoding.
0
 
dba123Author Commented:
ok, so what would be the syntax to escape them out in my example here...sorry, not familiar
0
 
dba123Author Commented:
nevermind, duh, thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now