Results 1 to 5 of 5

Thread: [RESOLVED] [2005]Problem with my COnfiguration Settings

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member shyguyjeff's Avatar
    Join Date
    Jul 2007
    Location
    City of Durian
    Posts
    289

    Resolved [RESOLVED] [2005]Problem with my COnfiguration Settings

    Elow guys need help on why it occurs error in my vb.net2005 while on 2003 it does not have an error..Here is my code:


    Code:
      Dim aConfig As Configuration.ConfigurationSettings
    
        Dim strServerName As String = aConfig.AppSettings("ServerName")

    on my app.config file here is the code:


    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    	<appSettings>
    		<add key="ServerName" value="(local)"/>
    	</appSettings>
    </configuration>
    At my first child form it display no problem but when i call child of my first child form it displays "Access of shared members, constant member, enum member, or nested type through an instance; qualifying expression will not be evaluated". Why this error comes out guys? Need help on how to do it..Thanks in advance and have a nice day! God Bless..
    Last edited by shyguyjeff; May 4th, 2008 at 10:15 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width