PC Review


Reply
Thread Tools Rate Thread

appSettings, the & char and 'error occured while parsing EntityNam

 
 
=?Utf-8?B?Sm9obiBNYXNvbg==?=
Guest
Posts: n/a
 
      25th Nov 2004
I have a file name in my app.config file which contains the & character.

<appSettings>
<!-- User application and configured property settings go here.-->
<!-- Connection string values -->
<add key="ExcelFileName" value="T:\HR & Development\Personnel\Weekly
Report\Weekly Report.XLS" />

When I try to read this in my app, I get an 'error occured while parsing
EntityName'. Now I've found out that this is a known problem, but how do I
get around it without changing the value= field.

TIA

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBNYXNvbg==?=
Guest
Posts: n/a
 
      25th Nov 2004
Found the solution, at last! You need to replace the & character with &amp;
D'oh!

"John Mason" wrote:

> I have a file name in my app.config file which contains the & character.
>
> <appSettings>
> <!-- User application and configured property settings go here.-->
> <!-- Connection string values -->
> <add key="ExcelFileName" value="T:\HR & Development\Personnel\Weekly
> Report\Weekly Report.XLS" />
>
> When I try to read this in my app, I get an 'error occured while parsing
> EntityName'. Now I've found out that this is a known problem, but how do I
> get around it without changing the value= field.
>
> TIA
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to permanently delete char char char char style in MS Word? =?Utf-8?B?Q3Jpcw==?= Microsoft Word Document Management 6 12th Jun 2011 09:47 PM
Ever seen "Char Char Char Char Char Char1 Char Char Ch" style? =?Utf-8?B?TWFyaWx5bg==?= Microsoft Word Document Management 2 4th Oct 2006 04:47 PM
Formatting changed to Char Char Char Char... =?Utf-8?B?TWVsaXNzYQ==?= Microsoft Word Document Management 10 14th Apr 2006 07:32 AM
error LNK2019: unresolved external symbol "public: static class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > > danip Microsoft VC .NET 0 5th Dec 2005 10:01 AM
RIS - Error occured during parsing Rich Microsoft Windows 2000 Deployment 2 14th Oct 2003 12:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 PM.