473,395 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Darn, still does not work!

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
Jan 28 '06 #1
5 1057
Bob wrote:
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
Jan 28 '06 #2
Bob
No the line that gives me an unhandled exception is the Dim Line.
Bob
"I Don't Like Spam" <no@spam.com> wrote in message
news:ur**************@TK2MSFTNGP09.phx.gbl...
Bob wrote:
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

Jan 29 '06 #3

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

"Bob" <bd*****@sgiims.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
No the line that gives me an unhandled exception is the Dim Line.
Bob
"I Don't Like Spam" <no@spam.com> wrote in message
news:ur**************@TK2MSFTNGP09.phx.gbl...
Bob wrote:
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


Jan 29 '06 #4
Hi,

This is how I do it.

http://www.vb-tips.com/default.aspx?...9-414986d2fb7d

Ken
-----------------
"Bob" <bd*****@sgiims.com> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
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

Jan 29 '06 #5
Bob
Thank you all,
Bob
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Hi,

This is how I do it.

http://www.vb-tips.com/default.aspx?...9-414986d2fb7d

Ken
-----------------
"Bob" <bd*****@sgiims.com> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
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


Jan 29 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: IWP506 | last post by:
Hello everyone. I'm having a problem with a php script that updates a news file for my website. Whenever I use a quote (either single or double) and view the news page, I get the \ escape...
7
by: Jonas | last post by:
This works fine in Win XP but does not work at all in Win 98. Private WithEvents objIExplorer As InternetExplorer I have to do it like this to get it to work in Win 98 Dim objIExplorer As...
18
by: Michele Simionato | last post by:
I posted this few weeks ago (remember the C Sharp thread?) but it went unnoticed on the large mass of posts, so let me retry. Here I get Python+ Psyco twice as fast as optimized C, so I would like...
9
by: Arafangion | last post by:
Hello, recently I've been trying to figure out how the heck to just destroy a thread. I have since rewritten the code in question, but what I was trying to do was to use the .Abort() method, but...
6
by: Bob | last post by:
I'm trying to prevent the beep when the tab key is pressed. It works ok on XP but windows 2000 is ding ding ding Here is my code: Protected Overrides Function ProcessDialogKey(ByVal keyData As...
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
89
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be...
1
by: Chris Mullins | last post by:
I need to write to the 32-bit registry, and need to do so from a 64-bit MSI. It never occurred to me that this would be difficult... I have an application that installs some 64-bit binaries for...
14
by: webEater | last post by:
I have a problem, it's not browser specific, and I don't get a solution. I have an (X)HTML document, I show you a part of it: .... <!--<div class="pad">--> <div id="eventImages"><img src=""...
2
by: DonDeCosta | last post by:
I've got a WebApp or Dashboard or Widget or whatever the nom du jour is. It sits in the corner of the screen displaying data as needed, prodded by external events. It's a browser window with no...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.