Search code examples
iisasp.net-core-mvc.net-7.0

IIS is not serving a complete HTML response


I am deploying an ASP.NET Core 7 MVC app to a DEV server running IIS10. Two very complex Views share partial views. When I navigate to either, the HTML response is truncated. it appears to be capped at ~49kB transferred for the larger of the two, but the app serves other, less lengthy pages completely.

This obviously does not happen while debugging on IIS Express, but it does happen when I deploy to a local IIS instance as well as to another Test server where I have successfully run and tested another app with the same toolset.

I found one similar post for which the solution was to enable compression. This did not help. It served compressed, truncated responses.


Solution

  • Problem identified - I think!

    The app is using the Telerik UI toolset. I am defining multiple DataSources using HTML Helpers. If I only define one DataSource in this way, the page gets served completely. Not quite the solution I wanted, but it will be manageable to redefine how I contextually apply different DataSource definitions to a common Grid definition.

    In the process, I also updated the app to .NET 8. I don't know if this solution would "work" with .NET7.