Facing Catastrophic Failure error in IIS8 Website

hardik shah 1 Reputation point
2021-06-03T07:39:26.363+00:00

Hello Team,

From last few days, after April 2021, we are randomly facing below error in our web application.

"Could not load file or assembly 'App_WebReferences' or one of its dependencies. Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))"

Please note that not all the time it is for App_WebReferences, some times it is for other dlls like AjaxEditorExtender as well.

This application has been built under .net framework 3.5 and on server we are running it under application pool with below details.

Server: Windows Server 2012 R2 Standard - 64bit OS.

IIS - Version 8.5.9600.16384

Application Pool -
.Net CLR Version - v2.0
Enable 32bit - true
Managed Pipeline Mode - Classic (we tried with Integrated as well, but same error)
Identity - ApplicationPoolIdentity (we tried with NetworkService as well, but same error)
Load User Profile - true (we tried with false as well, but same error).

When we either recycle pool, or change the pool name, or restart IIS, the issue goes away. But again after 1-2 days, it is reappearing again.

This is happening with all website that are hosted on our server. We have even installed latest updates on that server as well, but that also didn't resolve it. Please note that we have not changed any code in the application in recent history, and suddenly this error has started to appear.

Please help us getting resolution to this, thank you for support in advance.

Thanks
Hardik

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sam Wu-MSFT 7,041 Reputation points Microsoft Vendor
    2021-06-04T02:40:39.367+00:00

    Hi anonymous user-0871

    You can try the following methods to solve the problem:

    1. Remove the userName and password parameters from identity node in the web.config file: <identity impersonate="true" userName="blah" password="blah">
    2. Make sure that the specified userName has access to work with those "Temporary ASP.NET Files" folders found in the various C:\Windows\Microsoft.NET\Framework{version} folders.

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. hardik shah 1 Reputation point
    2021-06-04T06:57:01.167+00:00

    Hi @Sam Wu-MSFT ,

    Thanks for the update.

    1. We don't have username and password in identity tag. It is listed as below in web.config.
      <identity impersonate="true" />
    2. We are using Application Pool - Identity with ApplicationPoolIdentity and not specific user.

    Let me know how can we resolve this.

    Thanks
    Hardik


  3. hardik shah 1 Reputation point
    2021-11-30T09:40:11.453+00:00

    Hi @Sam Wu-MSFT ,

    Reopening this issue, we were able to resolve this issue if we delete temporary files. But again after 10-15 days, it has started created issue again.

    Also I have gone through the link you provided, we are having this error with application having .Net Framework 3.5, so that link will not be useful for us.

    Help us with any other solution.

    Thanks
    Hardik

    0 comments No comments