473,395 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

System.Configuration.appsettingReader returns weird error

RD
This code builds without errors, the line is in my declaration section of my
form.yet when I execute it I get an unhandled error.

Weird thing is I been testing this app all day yesterday, made no changes to
my dev machine and now all of a sudden it goes out to lunch.

Anybody have any ideas what that cryptic error means and what to do with it?

Thanks for any help

RD

Private configurationAppSettings As System.Configuration.AppSettingsReader =
New System.Configuration.AppSettingsReader
An unhandled exception of type 'System.Configuration.ConfigurationException'
occurred in system.dll

Additional information: Only elements allowed
Nov 21 '05 #1
2 3029

RD wrote:
This code builds without errors, the line is in my declaration section of my form.yet when I execute it I get an unhandled error.

Weird thing is I been testing this app all day yesterday, made no changes to my dev machine and now all of a sudden it goes out to lunch.

Anybody have any ideas what that cryptic error means and what to do with it?
Thanks for any help

RD

Private configurationAppSettings As System.Configuration.AppSettingsReader = New System.Configuration.AppSettingsReader
An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.dll

Additional information: Only elements allowed


Sounds like your .config file may be malformed in some way?

--
Larry Lard
Replies to group please

Nov 21 '05 #2
RD
Thanks, it was. Forgot to remove an end of comment mark.
Chalk it up to experience ;-) but I wish the error messages would give a
better idea exactly where to look.
Again, Thanks a lot.
"Larry Lard" <la*******@hotmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...

RD wrote:
This code builds without errors, the line is in my declaration

section of my
form.yet when I execute it I get an unhandled error.

Weird thing is I been testing this app all day yesterday, made no

changes to
my dev machine and now all of a sudden it goes out to lunch.

Anybody have any ideas what that cryptic error means and what to do

with it?

Thanks for any help

RD

Private configurationAppSettings As

System.Configuration.AppSettingsReader =
New System.Configuration.AppSettingsReader
An unhandled exception of type

'System.Configuration.ConfigurationException'
occurred in system.dll

Additional information: Only elements allowed


Sounds like your .config file may be malformed in some way?

--
Larry Lard
Replies to group please

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
1
by: Erick | last post by:
Hi, Could any explain how AppSettingReader know the right app.config file to take as default? Thanks.
2
by: Scott Reynolds | last post by:
I am having a problem exposing a class inherited from the collection base class as a webservice. If I expose the collection on a web page all works well and I am very happy. However when I try and...
8
by: A P | last post by:
Hi! I'm using ASP.Net Web Matrix on my PC and wanting to publish the files to our server. I try to copy (thru explorer) the files but it didn't work! I receive Runtime Error: Server Error...
2
by: Xtreeme-G | last post by:
I am seeing something weird in my c# winforms application. I cannot instantiate a ConfigurationManager object from the class. I have added System.Configuration in the uses section. I then try to...
1
by: Sky | last post by:
Yesterday I was told that GetType(string) should not just be with a Type, but be Type, AssemblyName. Fair enough, get the reason. (Finally!). As long as it doesn't cause tech support problems...
2
by: Goran Djuranovic | last post by:
Hi all, When sending mail from within a windows service I get this exception: "The specified procedure could not be found" at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at...
14
by: Ronald S. Cook | last post by:
I'm just curious how you would handle this. In the cable industry, Comcast is referred to as an "MSO" (multiple systems operator) meaning they own many cable systems. Therefore a solution must be...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.