E
eljainc
Hello,
I'm pretty new to C# programming, so be gentle with me. I have a block
of code which is the following:
scheduleDomainController1.ConnectionString = "data
source=.\\SQLEXPRESS;"+
"database=MyDatabase;Trusted_Connection=True;";
string AccountID = "00000000-0000-0000-0000-000000000000";
DataSet ds;
ds = new DataSet();
try
{
ds = scheduleDomainController1.GetScheduleDataSet(AccountID);
}
catch
{
MessageBox.Show("NullReferenceException in getting data');
}
The code that causes the NullReferenceException is:
ds = scheduleDomainController1.GetScheduleDataSet(AccountID);
scheduleDomainController is a component which allows one to connect
to a SQL database with minimal effort.
I am sure that the scheduleDomainController1 object has been created.
What else could cause this exception?
Thanks
Mike McWhinney
I'm pretty new to C# programming, so be gentle with me. I have a block
of code which is the following:
scheduleDomainController1.ConnectionString = "data
source=.\\SQLEXPRESS;"+
"database=MyDatabase;Trusted_Connection=True;";
string AccountID = "00000000-0000-0000-0000-000000000000";
DataSet ds;
ds = new DataSet();
try
{
ds = scheduleDomainController1.GetScheduleDataSet(AccountID);
}
catch
{
MessageBox.Show("NullReferenceException in getting data');
}
The code that causes the NullReferenceException is:
ds = scheduleDomainController1.GetScheduleDataSet(AccountID);
scheduleDomainController is a component which allows one to connect
to a SQL database with minimal effort.
I am sure that the scheduleDomainController1 object has been created.
What else could cause this exception?
Thanks
Mike McWhinney