Sporadic error: The file has not been pre-compiled, and cannot be requested

后端 未结 4 668
天涯浪人
天涯浪人 2020-12-14 17:17

Symptoms: ASP.NET Web Forms website on Azure sporadically crashes and all .aspx page requests fail with this error. The problem seems random and only happens once in a great

4条回答
  •  無奈伤痛
    2020-12-14 17:59

    I get the same problem from time to time, on aleatory pages that where working and suddenly stop. Like this

    But i know for a fact that the page is pre-complied The "WORKAROUND" for me is very strange.

    1. Go into the Temporary ASP.NET Files folder in the offending server,
    2. Search for 0kb .deleted files
    3. Delete them.

    Eric Sassaman explains, in his answer, why this happens. Will try to upgrade to 4.8 and see if it solves the issue.

    *I've been having this issue, and applying my workaround, since 4.2, i think. I find it strange that microsoft states that is was introduced with 4.7. Today i gave another shot at finding the root cause of the problem and found this thread.

    Thank you Eric for your efforts, for contacting Microsoft and posting their response.

提交回复
热议问题