TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
HumptyNotSoDumpty
NA
23
0
Application Configuration File Error
Jul 30 2004 7:49 AM
I have attempted to use an XML Application Configuration File, but am getting the followin error: Error loading XML file file:///D:/Test/bin/Debug/Test.exe.config 'XML' is an invalid name for a processing instruction. Line 1, position 3. (D:\Test\bin\Debug\Test.exe.config) Has anyone encountered this problem before? I am unable to resolve the issue, and am beginning to wonder if its a glitch within VS 2002. My XML file 'Test.exe.cofig' is as follows:
My code is as follows: using System.Collections; using System.Configuration; using System.Windows.Forms; namespace Test { public class Form1 : Form { private Button btn1; [STAThread] static void Main() { Application.Run(new Form1()); } private void btn1_Click(object sender, System.EventArgs e) { try { MessageBox.Show("Keys Count: " + ConfigurationSettings.AppSettings.Count.ToString()); } catch (Exception e) { MessageBox.Show(Main.Message); } } } }
Reply
Answers (
2
)
JLOOX equivalent third party software for C#.Net GDI
Converting string to int