Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Software (http://www.velocityreviews.com/forums/f6-software.html)
-   -   Error: "The expected token is 'NAME'." in system.dll (http://www.velocityreviews.com/forums/t360423-error-the-expected-token-is-name-in-system-dll.html)

seniorwebguy 07-25-2006 05:14 PM

Error: "The expected token is 'NAME'." in system.dll
 
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?

seniorwebguy 07-25-2006 06:58 PM

App.Config syntax error
 
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"" " />


All times are GMT. The time now is 05:33 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


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