R
Randy
Hello All,
I've got an app which performs a simple query to a web service and stores
the returning data in a DataSet. The first time through it works find and as
expected. The problem is that the second time I step through and I step on
the line
myDataAdapter1.Fill(tempds);
I get the IDE error...
"There is no source code available for the current location".
If I run the app (not under the debugger) I get no error messages but this
problem usually messes up the web service as I get an error saying "Server
was unable to process request. -> Object reference not set to an instance of
an object". I'm sure this is causing the error because when I comment out
the code hitting the web service, the app runs fine.
The code to hit the web service is simple...
DataSet tempds = new DataSet();
OleDbConnection myOleDbConnection = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + dbpath +
";Persist Security Info=False");
OleDbDataAdapter myDataAdapter1 = new
OleDbDataAdapter(query,myOleDbConnection);
myDataAdapter1.Fill(tempds);
And the query is simple..."select field1, field2 from mytable order by
field2".
Has anyone gotten this before or know how I may correct it?
Thanks
Cheers
I've got an app which performs a simple query to a web service and stores
the returning data in a DataSet. The first time through it works find and as
expected. The problem is that the second time I step through and I step on
the line
myDataAdapter1.Fill(tempds);
I get the IDE error...
"There is no source code available for the current location".
If I run the app (not under the debugger) I get no error messages but this
problem usually messes up the web service as I get an error saying "Server
was unable to process request. -> Object reference not set to an instance of
an object". I'm sure this is causing the error because when I comment out
the code hitting the web service, the app runs fine.
The code to hit the web service is simple...
DataSet tempds = new DataSet();
OleDbConnection myOleDbConnection = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + dbpath +
";Persist Security Info=False");
OleDbDataAdapter myDataAdapter1 = new
OleDbDataAdapter(query,myOleDbConnection);
myDataAdapter1.Fill(tempds);
And the query is simple..."select field1, field2 from mytable order by
field2".
Has anyone gotten this before or know how I may correct it?
Thanks
Cheers