Request Entity Too Large for Self Hosted ASP.Net Web API Request Entity Too Large for Self Hosted ASP.Net Web API json json

Request Entity Too Large for Self Hosted ASP.Net Web API


I was getting the same problem and was able to make the change in code.

var config = new HttpSelfHostConfiguration(host);config.MaxReceivedMessageSize = 2147483647; // use config for this value/*other setup for the config*/using (var server = new HttpSelfHostServer(config)){    server.OpenAsync().Wait();    Console.WriteLine("Insight.Web");    Console.ReadLine();}