I am working with ASP .NET Core (.NET Framework). I have done my best to install the latest preview tools and remove older versions, but most of installers fail when I try to uninstalled anything. I need to either get it working in IIS, or IIS Express as a starting point.
Deploying to IIS simply doesn't work. I've been over this article many times, but can't get it to work:https://docs.microsoft.com/en-us/aspnet/core/publishing/iis
ASP.NET Core works in IIS Express to a certain extent. I am able to serve up REST calls, and from JavaScript, I am able to hit the REST services served up through IIS Express. However, I'm trying to POST a large chunk of JSON to a REST call, and I'm getting the error:
System.IO.InvalidDataException occurred
Message: Exception thrown: 'System.IO.InvalidDataException' in Microsoft.AspNetCore.WebUtilities.dll
Additional information: Form key or value length limit 2048 exceeded.
I Googled the error and found sound instructions on how to change this:
http://stackoverflow.com/questions/28155342/default-limits-limits-for-iis-express
So, I added this to requestFiltering:
<requestLimits maxAllowedContentLength="524288000" />
It did nothing. So, why is IIS Express stopping me from posting a body of over 2048 bytes?
Can somebody throw me a bone on how to get ASP .NET Core working in IIS? Or, at least clean up all the old versions of ASP .NET Core so that I know I am using the latest version?