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.