Questions tagged [httpresponsemessage]

HttpResponseMessage refers to the C# public class that represents an HTTP response message including the status code and data. Use this tag for questions related to the public class.

HttpResponseMessage refers to the C# public class that represents an HTTP response message including the status code and data. Use this tag for questions related to the public class.

168 questions
-2
votes
1 answer

One Serialization method produces Out of Memory error the other dose not

On only really large collections the following line throws an OutofMemroyException at mscorlib.dll at server level HttpResponseMessage response; response.Content= new StringContent(JsonConvert.SerializeObject(results), system.Encoding.UTF8,…
John Sheridan
  • 83
  • 1
  • 2
  • 10
-2
votes
1 answer

HttpResponseMessage.Content is in array

Angular call to controller var objData = {data: JSON.stringify(JSONObject)} var mapFile = $scope.service.common.WriteDynamicMapFile.save({}, objData).$promise; mapFile.then(function (response) {**Do Stuff**}); My C# controller public class…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
-3
votes
1 answer

.Net HttpResponseMessage.Content.ReadAsAsync> getting null always in the TResponse value

When I do the request using Postman I get: This is what I am expecting: public class Result { public int? ErrorId { get; protected set; } // Todo: Use it!!! public bool Success { get; protected set; } public…
1 2 3
11
12