Author: esassaman | Posted on: 12/31/2009 9:24:38 PM | Views : 543

Hi I'm just learning MS ajax and am having problems getting a relatively simple test to work. I'm attempting to call a web service (of the .asmx variety) to return a very simple 3-column table to render in a dataView in an .aspx page. I've successfully created a working service and can by stepping through the service code it's getting the data correctly.
The problem I'm having is that it stops with an exception in MicrosoftAjaxDebug.js on this line:
throw Sys.Net.WebServiceProxy._createFailedError(methodName, String.format(Sys.Res.webServiceFailed, methodName, error)); with a System.ObjectDisposedException -- cannot access a disposed object. Object name: 'DataContext accessed after Dispose'.
I'm just baffled on why I'm getting this error.
What I'm trying to do is fill in a dataView with data from my service in response to a button click (I don't want to fill it ...

Go to the complete details ...