I'm experiencing an issue where the server is unable to read values from a large list when sent using Post. Oddly enough, this works on the homologation server but not on the production server.
Http post AngularJs
$http({
url: $rootScope.raiz_ws + '/Import/Gravar',
method: "POST",
data: { 'model': model }
}).then(function (response) {
alert(response.data.mensagem);
});
Controller C#
{
try
{
var response = this.call.Save(model);
this.oc.dados = response;
this.oc.status = true;
this.oc.mensagem = "Ok!";
}
catch (Exception e)
{
this.oc.status = false;
this.oc.mensagem = e.Message;
}
return serializer.Serialize(this.oc);
}
Model
{
public List<ImportMail> importMail { get; set; }
public string YY { get; set; }
public string XX { get; set; }
}
{
public string ID { get; set; }
public string PP { get; set; }
public string TT { get; set; }
}
The variables' names have been swapped! This code functions as expected in development and testing environments with large lists, but encounters issues in the production environment. Could it be related to some IIS configuration?