View Single Post
 
Old July 24th, 2007, 09:03 AM
smp4774 smp4774 is offline
Authorized User
 
Join Date: Mar 2007
Location: Baroda, Gujarat, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to smp4774
Default VB 2005 Appsetting

I am using VS 2005 and Visual Basic. I added App.config file to store Custom information like Server name, User Id, and password. When I try to write code in

App.config contains below data,
<Appsettings>
<add key="servername" value="Myserver">
<add key="username" value="sa">
</Appsettings>

Class1.vb file,

Import system.configuration

Sub Getconnection
    dim x as string
    x=configurationmanager.appsetting("servername")
end sub

My VS 2005 not show me configurationmanager class, system.configuration.configmanager class not available.

What's the problem?
I want to know it urgent base. Please reply as soon as possible. As, I have to finish project in 2 days.

Thanks in Advance.