This is a migrated thread and some comments may be shown as answers.

Grid Transport Read returning 12152 error code

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Igor Diamant
Top achievements
Rank 1
Igor Diamant asked on 31 Jan 2013, 05:55 PM
Hi,

Up to now I have been using local binding but now I need to show a grid using remote binding. I have defined a WCF method that is being called e returns a DataSourceResult. This class was picked from grid-wcf-crud code sample.

public class DataSourceResult
{
    /// <summary>
    /// Represents a single page of processed data.
    /// </summary>
    public IEnumerable Data { get; set; }

    /// <summary>
    /// The total number of records available.
    /// </summary>
    public int Total { get; set; }
}


I have defined the Read function like this:

var properties = { url: url, data: data, type: 'POST', dataType: dataType, contentType: 'application/json', 
                               cache: false, success: OnSuccess, error: OnError };

$.ajax(properties);

Debugging the WCF method I can see that it is being called correctly and the returned data is OK. But I am receiving a 12152  error code in the javascript.

What could it be ?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 04 Feb 2013, 08:04 AM
Hello Igor,

 This looks to be a problem caused by jQuery.ajax ($.ajax) and the response returned by your service. Here is what the IE error messages documentation says:

ERROR_HTTP_INVALID_SERVER_RESPONSE
12152
The server response could not be parsed.

I suggest you check what the actual response of your WCF method is using your browser's development tools. You can also use Fiddler to inspect the server response.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Igor Diamant
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or