Click here to Skip to main content
15,901,666 members
Home / Discussions / C#
   

C#

 
AnswerRe: Comparind data in a Database with an XML file Pin
Manas Bhardwaj28-Aug-08 5:42
professionalManas Bhardwaj28-Aug-08 5:42 
QuestionProblem with loading tiff-picture to Visual C# Project! Pin
bugor7728-Aug-08 5:13
bugor7728-Aug-08 5:13 
QuestionRe: Problem with loading tiff-picture to Visual C# Project! Pin
Mark Salsbery28-Aug-08 6:26
Mark Salsbery28-Aug-08 6:26 
GeneralRe: Problem with loading tiff-picture to Visual C# Project! Pin
ScottM128-Aug-08 10:50
ScottM128-Aug-08 10:50 
JokeRe: Problem with loading tiff-picture to Visual C# Project! Pin
The Cake of Deceit28-Aug-08 12:46
The Cake of Deceit28-Aug-08 12:46 
GeneralRe: Problem with loading tiff-picture to Visual C# Project! Pin
bugor7728-Aug-08 21:03
bugor7728-Aug-08 21:03 
GeneralRe: Problem with loading tiff-picture to Visual C# Project! Pin
The Cake of Deceit29-Aug-08 3:36
The Cake of Deceit29-Aug-08 3:36 
QuestionRetrieving Oracle servers but cannot get host name Pin
Antony Lyell28-Aug-08 4:34
Antony Lyell28-Aug-08 4:34 
Hi
I have a piece of code that retrieves Oracle connection information and places it in a list box.

string ProviderName = "Oracle.DataAccess.Client";
DbProviderFactory factory = DbProviderFactories.GetFactory(ProviderName);
if (factory.CanCreateDataSourceEnumerator)
{
DbDataSourceEnumerator dsenum = factory.CreateDataSourceEnumerator();
DataTable dt = dsenum.GetDataSources();

foreach (DataRow dtvar in dt.Rows)
{
listBox1.Items.Add((dtvar.ItemArray[0].ToString() + " : " +
dtvar.ItemArray[1].ToString() + " : " +
dtvar.ItemArray[2].ToString() + " : " +
dtvar.ItemArray[3].ToString() + " : " +
dtvar.ItemArray[4].ToString()));
}
}
else
{
MessageBox.Show("Enum not provided by provider");
}


This works on one machine which adds lines like "DB1 : MYMACHINE : db1.domain.local : TCP : 1521"
but on another machine (with the same TNSNAMES.ora) gives "DB1 : : db1.domain.local : :"

i.e. the host name, protocol and port are not being retrieved.

Both machines have the same Oracle client (10g) and the same Oracle.DataAccess.dll (2.111.6.20)

Any ideas what could be different between the machines or what is causing the problem?
AnswerRe: Retrieving Oracle servers but cannot get host name Pin
Wendelius28-Aug-08 7:57
mentorWendelius28-Aug-08 7:57 
GeneralRe: Retrieving Oracle servers but cannot get host name Pin
Antony Lyell28-Aug-08 21:56
Antony Lyell28-Aug-08 21:56 
GeneralRe: Retrieving Oracle servers but cannot get host name Pin
Wendelius29-Aug-08 7:00
mentorWendelius29-Aug-08 7:00 
QuestionInheritance and constructors Pin
Dewald28-Aug-08 4:22
Dewald28-Aug-08 4:22 
AnswerRe: Inheritance and constructors Pin
netJP12L28-Aug-08 4:35
netJP12L28-Aug-08 4:35 
GeneralRe: Inheritance and constructors Pin
Dewald29-Aug-08 3:11
Dewald29-Aug-08 3:11 
AnswerRe: Inheritance and constructors Pin
Pete O'Hanlon28-Aug-08 4:36
mvePete O'Hanlon28-Aug-08 4:36 
GeneralRe: Inheritance and constructors Pin
N a v a n e e t h28-Aug-08 5:21
N a v a n e e t h28-Aug-08 5:21 
GeneralRe: Inheritance and constructors Pin
Dewald29-Aug-08 3:26
Dewald29-Aug-08 3:26 
AnswerRe: Inheritance and constructors Pin
Frank Horn28-Aug-08 4:39
Frank Horn28-Aug-08 4:39 
GeneralRe: Inheritance and constructors Pin
Dewald29-Aug-08 3:31
Dewald29-Aug-08 3:31 
AnswerRe: Inheritance and constructors Pin
laserbaronen28-Aug-08 4:42
laserbaronen28-Aug-08 4:42 
GeneralRe: Inheritance and constructors Pin
Dewald29-Aug-08 3:31
Dewald29-Aug-08 3:31 
Question[Message Deleted] Pin
hadad28-Aug-08 4:16
hadad28-Aug-08 4:16 
AnswerRe: BinnaryWriter Class Pin
led mike28-Aug-08 5:05
led mike28-Aug-08 5:05 
GeneralRe: BinnaryWriter Class Pin
Mark Salsbery28-Aug-08 6:29
Mark Salsbery28-Aug-08 6:29 
GeneralRe: BinnaryWriter Class Pin
led mike28-Aug-08 6:42
led mike28-Aug-08 6:42 

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.