Apr 22, 2010, 4:35 PM
[CLOSED] "'Ext.Net.Response' is null or not an object" on store save
Hi,
I'm trying to call a controller to update a grid's store, but I'm getting an error window even though everything apppears to be fine. The same thing occurs on a Webservice we have that was working when we were in 0.7 but now fails.
Is there something else I need to be returning instead of Response for this to work??
I've posted the Controllers action below. I Omitted all of the code and just set it to always return true. It returns the following though:
******************************************
Request Failure
Status Code: 200
Status Text: OK
'Ext.Net.Response' is null or not an object.
******************************************
[AcceptVerbs(HttpVerbs.Post)]
public Response SaveItems(Guid? delegateID, ApprovalType approvalType)
{
//Removed all extra stuff to be sure it was just the response
Response result = new Response(true);
result.Success = true;
return result;
}
<ext:Store ID="stoExpenseReports"
runat="server"
GroupField="ReportID"
PruneModifiedRecords="false"
WarningOnDirty="false"
RefreshAfterSaving="Always">
<UpdateProxy>
<ext:HttpWriteProxy Url="../MyController/SaveItems" Method="POST" />
</UpdateProxy>
<Proxy>
<ext:HttpProxy Url="../MyController/GetAction" />
</Proxy>
<BaseParams>
**BLAH BLAH BLAH**
</BaseParams>
<WriteBaseParams>
**BLAH BLAH BLAH**
</WriteBaseParams>
<SortInfo Field="ReportID" Direction="ASC" />
<Reader>
<ext:JsonReader IDProperty="TheID"
Root="Items"
TotalProperty="Total">
<Fields>
**BLAH BLAH BLAH**
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>