DCampbell2006
asked on
System.NullReferenceException
Hello Community -- I have a .NET 2003 app that I converted to .NET 2005. I'm receiving an error message "System.NullReferenceExcep tion" when I complie. Here's the code -- Thank you in advance.
private DataTable GetWeekDays(){
string query = "SELECT * from dbo.fnGetWeekDay('" + selection.ToShortDateStrin g() + "') order by Seq";
DataSet ds = SqlHelper.ExecuteDataset(A pplication ["DBConn"] .ToString( ), CommandType.Text, query);
return ds.Tables[0];
}//GetWeekDays()
private DataTable GetWeekDays(){
string query = "SELECT * from dbo.fnGetWeekDay('" + selection.ToShortDateStrin
DataSet ds = SqlHelper.ExecuteDataset(A
return ds.Tables[0];
}//GetWeekDays()
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
used a copy of Microsoft.ApplicationBlock s.Data.dll from a coworker and app works fine. Thank you all....
Please read this article for more information about the web.config
http://msdn.microsoft.com/
Let me know if you have any question.
Thanks
Ganesh