IIS won't serve static files larger than 10KBRSS

9 replies

Last post Sep 02, 2020 06:28 AM by Jalpa Panchal

  • IIS won't serve static files larger than 10KB

    Jan 14, 2019 03:31 PM|never_again|LINK

    Hi,

    I'm facing a strange issue with IIS on windows 10.

    No static files larger than 10KB are served.

    Even if I go and try to open the http://localhost/ to see the iisstart.htm page, the iisstart.png is not loaded.

    Error in Chrome: Failed to load resource: net::ERR_CONNECTION_RESET (after ~40 seconds of "pending")

    No failed requests logged (trying to catch all errors from 401 to 999).

    Not a Chrome issue as same happens in FireFox and Edge too.

    Tried to reinstall IIS to no avail.

    Frustrated. Need help.

    Thank you in advance.

  • Re: IIS won't serve static files larger than 10KB

    Jan 15, 2019 06:25 AM|Jalpa Panchal|LINK

    Hi never_again,

    There are several places that control how much content you can send to the server.

    So here are the two main places where the request length is set in IIS and ASP.NET:

    IIS Request Filtering
    HttpRuntime maxRequestLength

    IIS RequestFiltering requestLimits

    ASP.NET <httpRuntime maxRequestLength>

    Make sure you enable iis static content feature enable:

    Regards,

    Jalpa.

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
  • Re: IIS won't serve static files larger than 10KB

    Jan 15, 2019 06:51 AM|never_again|LINK

    Hi Jalpa,

    Thank you for your reply.

    Unfortunatelly it didn't help. Both of those "size" settings are set to default and look just like on your examples and of course static content is enabled.

  • Re: IIS won't serve static files larger than 10KB

    Jan 25, 2019 07:50 AM|Jalpa Panchal|LINK

    Could you tell us how you reinstall iis?

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
  • Re: IIS won't serve static files larger than 10KB

    Feb 15, 2019 07:16 PM|sai_tejan|LINK

    Hey hi did it work? what else did you try? If you possible trying enabling freb rules and post the logs here to check. 

  • Re: IIS won't serve static files larger than 10KB

    Jun 06, 2019 09:58 AM|idrisnacer|LINK

    Hi,
    I have the same problem here.
    It's not just about static files, I have an odata service.
    It happened after I installed windows updates. before that it was working just fine.
    If the response is bigger than 10kb, it’s not working.

  • Re: IIS won't serve static files larger than 10KB

    Jun 06, 2019 04:06 PM|idrisnacer|LINK

    I found that Windows Defender is causing the problem. try to disable it.
    Problem solved for me.

  • Re: IIS won't serve static files larger than 10KB

    Sep 02, 2020 06:20 AM|never_again|LINK

    Hi, sorry it took me a while.

    The IIS reinstall was performed via Windows Features - remove, clean all leftovers if any, restart, install again.

  • Re: IIS won't serve static files larger than 10KB

    Sep 02, 2020 06:21 AM|never_again|LINK

    Hi,

    sorry it took me a while.

    Not my case unfortunatelly. Disabled antivirus (ESET in my case) to no avail. Can't get directly to the Windows Defender as it's overriden by ESET. Can't uninstall ESET for it's a company rule to have that thing installed.

  • Re: IIS won't serve static files larger than 10KB

    Sep 02, 2020 06:28 AM|Jalpa Panchal|LINK

    what is the current situation? what issue you are facing now and what you did?

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.