Newbie SetConnection help


Author
Message
Kirk M Sherhart
Kirk M Sherhart
StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)StrataFrame Novice (65 reputation)
Group: Forum Members
Posts: 41, Visits: 259
I'm working my way through the tutorials and have hit a snag trying to establish a db connection. If I use the following...



ConnectionManager.ApplicationKey = "App1";

ConnectionManager.ApplicationDefaultTitle = "App1 Connection";

ConnectionManager.ApplicationDefaultDescription = "This application connection is used by App1";



ConnectionManager.SetConnections();





then the application starts, brings up the Connection Wizard, I enter the Oracle connection info (for TNSNAMES, etc.) and then bombs with the following message



The program '[2308] App1.exe: Managed' has exited with code -1073741819 (0xc0000005).




But, if I use the following...





ConnectionManager.ApplicationKey = "App1";

ConnectionManager.ApplicationDefaultTitle = "App1 Connection";

ConnectionManager.ApplicationDefaultDescription = "This application connection is used by App1";



DataLayer.DataSources.Add(new OracleDataSourceItem("", "Data Source=STSGEO;user id=abc;password=xyz;"))





it works! Any help is much appreciated!!!





GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search