Click here to Skip to main content
15,918,050 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: string comparision Pin
Luc Pattyn17-Jun-08 12:46
sitebuilderLuc Pattyn17-Jun-08 12:46 
QuestionProblem accessing Application Event Log programatically Pin
Helen Bull17-Jun-08 3:58
Helen Bull17-Jun-08 3:58 
AnswerRe: Problem accessing Application Event Log programatically Pin
Noctris18-Jun-08 3:21
Noctris18-Jun-08 3:21 
GeneralRe: Problem accessing Application Event Log programatically Pin
Helen Bull20-Jun-08 2:29
Helen Bull20-Jun-08 2:29 
QuestionWebBrowser control Session issue ? Pin
imran_rafique17-Jun-08 3:43
imran_rafique17-Jun-08 3:43 
AnswerRe: WebBrowser control Session issue ? Pin
Noctris18-Jun-08 3:24
Noctris18-Jun-08 3:24 
Questionproblem wit autentication Pin
Ebube17-Jun-08 3:18
Ebube17-Jun-08 3:18 
AnswerRe: problem wit autentication Pin
Christian Graus17-Jun-08 3:27
protectorChristian Graus17-Jun-08 3:27 
Questionhow can change the LeftMost dimension of an array Pin
Rupesh Kumar Swami17-Jun-08 2:50
Rupesh Kumar Swami17-Jun-08 2:50 
AnswerRe: how can change the LeftMost dimension of an array Pin
Christian Graus17-Jun-08 3:01
protectorChristian Graus17-Jun-08 3:01 
GeneralRe: how can change the LeftMost dimension of an array Pin
Rupesh Kumar Swami17-Jun-08 3:34
Rupesh Kumar Swami17-Jun-08 3:34 
GeneralRe: how can change the LeftMost dimension of an array Pin
Christian Graus17-Jun-08 4:30
protectorChristian Graus17-Jun-08 4:30 
GeneralRe: how can change the LeftMost dimension of an array Pin
Guffa17-Jun-08 12:22
Guffa17-Jun-08 12:22 
QuestionOn Enter Button1 is clicked Pin
Assaf8217-Jun-08 2:04
Assaf8217-Jun-08 2:04 
AnswerRe: On Enter Button1 is clicked Pin
Christian Graus17-Jun-08 2:08
protectorChristian Graus17-Jun-08 2:08 
GeneralRe: On Enter Button1 is clicked Pin
Assaf8217-Jun-08 2:12
Assaf8217-Jun-08 2:12 
GeneralRe: On Enter Button1 is clicked Pin
Christian Graus17-Jun-08 2:26
protectorChristian Graus17-Jun-08 2:26 
QuestionRuntime Problem Pin
monika_vasvani17-Jun-08 0:06
monika_vasvani17-Jun-08 0:06 
AnswerRe: Runtime Problem Pin
Ajay.k_Singh17-Jun-08 0:33
Ajay.k_Singh17-Jun-08 0:33 
AnswerRe: Runtime Problem Pin
~Khatri Mitesh~17-Jun-08 2:04
~Khatri Mitesh~17-Jun-08 2:04 
QuestionProblem Retrieving a Connection String from App.Config Pin
Vimalsoft(Pty) Ltd16-Jun-08 22:06
professionalVimalsoft(Pty) Ltd16-Jun-08 22:06 
Good Morning All

i have the Following App.Config file in VB2003 and a Windows Application.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
	<appSettings>
		<!--   User application and configured property settings go here.-->
		<!--   Example: <add key="settingName" value="settingValue"/> -->
		<add key="timer.Enabled" value="True" />
		<add key="timer.Interval" value="1000" />
		<connectionstring>
		<add name ="Tshwane_Train"
		connectionString = "login=sde;Password=topology;Database=Tshwane_Valuations_Train;
		Server=SGIICORNETGS01"/>
		</connectionstring>
	</appSettings>	
</configuration>



and am Accessing this Connction string from the Vb App, like this

Dim constr As String = Configuration.ConfigurationSettings.AppSettings("Tshwane_Train")


When i compile the Application, i get no Errors ,but but when i try to run the application, i mean the Part that will need to Connect to the Database i get the Following Error.

An unhandled exception of
type 'System.Configuration.ConfigurationException' occurred in system.dll<br />
Additional information: Unrecognized element



What is Wrong

Thanks

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


AnswerRe: Problem Retrieving a Connection String from App.Config Pin
Andy_L_J17-Jun-08 2:05
Andy_L_J17-Jun-08 2:05 
GeneralRe: Problem Retrieving a Connection String from App.Config Pin
Vimalsoft(Pty) Ltd17-Jun-08 3:07
professionalVimalsoft(Pty) Ltd17-Jun-08 3:07 
GeneralRe: Problem Retrieving a Connection String from App.Config Pin
Vimalsoft(Pty) Ltd17-Jun-08 3:14
professionalVimalsoft(Pty) Ltd17-Jun-08 3:14 
AnswerRe: Problem Retrieving a Connection String from App.Config Pin
Mark Churchill17-Jun-08 3:14
Mark Churchill17-Jun-08 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.