|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Configuration File code error
http://msdn2.microsoft.com/en-us/library/system.configuration.configuration
This site contains sample code that does not compile for me. The line of code is: ' Get the current configuration file. Dim config As _ System.Configuration.Configuration = _ ConfigurationManager.OpenExeConfiguration( _ ConfigurationUserLevel.None) When I place this in my VB.Form code, I get the following error: System.Configuration.Configuration is not defined. Surely I am missing something simple. I'm assuming you have created an app.config file?
====================================== David McCarter www.vsdntips.com VSDN Tips & Tricks .NET Coding Standards available at: www.cafepress.com/vsdntips.20412485 Show quoteHide quote "genojoe" wrote: > http://msdn2.microsoft.com/en-us/library/system.configuration.configuration > > This site contains sample code that does not compile for me. The line of > code is: > > ' Get the current configuration file. > Dim config As _ > System.Configuration.Configuration = _ > ConfigurationManager.OpenExeConfiguration( _ > ConfigurationUserLevel.None) > > When I place this in my VB.Form code, I get the following error: > > System.Configuration.Configuration is not defined. Surely I am missing > something simple. > > genojoe wrote:
Show quoteHide quote > http://msdn2.microsoft.com/en-us/library/system.configuration.configuration IT may be something simple but I've not figured it out either...any> > This site contains sample code that does not compile for me. The line of > code is: > > ' Get the current configuration file. > Dim config As _ > System.Configuration.Configuration = _ > ConfigurationManager.OpenExeConfiguration( _ > ConfigurationUserLevel.None) > > When I place this in my VB.Form code, I get the following error: > > System.Configuration.Configuration is not defined. Surely I am missing > something simple. luck?
How to create a local server (i.e., localhost)
VB.NET Datagrid Sorting of Numbers For Each Loop in ASP.NET 2.0 VB.NET XML Documentor serialization, object within a dataset difference in Filestream + StreamWriter and just StreamWriter Missing Dll mscoree.dll OFF TOPIC: IL DASM the MSIL disassebler Nested Loop Insufficient key column information for updating or refreshing. |
|||||||||||||||||||||||