"There is no source code available for the current location"

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 :)
 
R

Randy

Actually, the code in my first post hits an Access database. But I've got
the same situation occuring on the web service too. The same thing happens.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top