Darn, still does not work!

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Vs2003, Winform app, trying to read an application setting

Dim MyAppMgr as new System.configuration.AppsettingsReader
Me.textbox1.text = MyAppMgr.Getvalue("MyServerName",string)
Now when I execute the first line I get a system.dll exception because it
says required attiubte 'Value' not found.

What value, there are no choices possibles either as other objects or as
parameters for AppsettingsReader in intellisense. If I don't include the
word new in the line obviously MyappMgr object stays to nothing and the next
line gives me an error.

How do I get out of this friggin catch 22.

Any help appreciated.

Bob
 
Bob said:
Vs2003, Winform app, trying to read an application setting

Dim MyAppMgr as new System.configuration.AppsettingsReader
Me.textbox1.text = MyAppMgr.Getvalue("MyServerName",string)
Now when I execute the first line I get a system.dll exception because it
says required attiubte 'Value' not found.

What value, there are no choices possibles either as other objects or as
parameters for AppsettingsReader in intellisense. If I don't include the
word new in the line obviously MyappMgr object stays to nothing and the next
line gives me an error.

How do I get out of this friggin catch 22.

Any help appreciated.

Bob

It's telling you that it can't find "MyServerName"

Chris
 
Dim MyAppMgr As New System.configuration.AppSettingsReader
Me.TextBox1.Text = MyAppMgr.GetValue("MyServerName",
GetType(String)).ToString
 
Back
Top