Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Error: "The expected token is 'NAME'." in system.dll

Reply
Thread Tools

Error: "The expected token is 'NAME'." in system.dll

 
 
seniorwebguy seniorwebguy is offline
Junior Member
Join Date: Jul 2006
Location: Hodgenville, KY
Posts: 3
 
      07-25-2006
Receiving this error:
Code:
An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.dll

Additional information: This is an unexpected token. The expected token is 'NAME'. Line 10, position 93.
when executing this code:
Code:
System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]
I'm using .NET 1.1 and cannot debug my windows application anymore.

Any ideas?
 

Last edited by seniorwebguy; 07-25-2006 at 05:23 PM..
Reply With Quote
 
 
 
 
seniorwebguy seniorwebguy is offline
Junior Member
Join Date: Jul 2006
Location: Hodgenville, KY
Posts: 3
 
      07-25-2006
It turns out that this error signifies a syntax error somewhere in the App.Config file. Most people seem to misspell something like <appSettings>. In my case, I wanted double quotes (") embedded in the value string. I tried ("") and (\") but neither one worked. So the question has changed.

How do you achieve the following without receiving an error:

Code:
<add key="ExcelFileFormat" value="Provider=Microsoft.Jet.OLEDB.4.0; Extended Properties=""Excel 8.0;HDR=YES"" " />
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
This is an unexpected token. The expected token is 'NAME' =?Utf-8?B?Y2FzaGRlc2ttYWM=?= ASP .Net 2 07-13-2007 11:38 AM
Header include problems error: expected class-name before '{' token bubzilla C Programming 2 09-25-2006 10:52 AM
Token pasting (## operator) - Add whitespace to a token Wessi C Programming 3 08-11-2005 01:02 PM
"token" "token sequence" "scalar variable" "vector" ?? G Fernandes C Programming 1 02-18-2005 05:32 AM
preprocessor, token concatenation, no valid preprocessor token Cronus C++ 1 07-14-2004 11:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57