XML in app.config file in VB 2005
-
Hello, I am developing a VB .Net 2005 project. I have a problem, i have a app.config file which I have entered connection strings and other setting from the project properties tab. This has automatically generated the app.config file for me. I have edited the app.config myself and entered a new section which I did manually. However, now that I have done this the existing code in the app.config doesn't work. Summary: If I add my own manually entered config sections with what has been automatically generated. But parts don't work. If I just add my own manually entered and commit out the rest my own manually works fine. It doesn't work with both. I was thinking of adding a new app.config file, which has the default name of app1.config. But I am sure how I would reference each one when the program runs. The config file is below, my manual section is the appUpdater, at the bottom. Is there a way that I can include my own manual entered sections?
-
Hello, I am developing a VB .Net 2005 project. I have a problem, i have a app.config file which I have entered connection strings and other setting from the project properties tab. This has automatically generated the app.config file for me. I have edited the app.config myself and entered a new section which I did manually. However, now that I have done this the existing code in the app.config doesn't work. Summary: If I add my own manually entered config sections with what has been automatically generated. But parts don't work. If I just add my own manually entered and commit out the rest my own manually works fine. It doesn't work with both. I was thinking of adding a new app.config file, which has the default name of app1.config. But I am sure how I would reference each one when the program runs. The config file is below, my manual section is the appUpdater, at the bottom. Is there a way that I can include my own manual entered sections?
The app.config file structure is enforced by a schema. If you violate this schema, the configuraton file is invalid and it won't load. I hope this helps: http://msdn2.microsoft.com/en-us/library/ms254494(VS.80).aspx[^]
"We make a living by what we get, we make a life by what we give." --Winston Churchill