IIS Admin API - An unhandled exception has occurred while executing the request

Jose Lopez 1 Reputation point
2021-01-04T19:40:29.247+00:00

Hi,

Getting the following Events in Application Event log.
This is the first time I have seen these in 6 months+ of having this setup.
See attached for the whole event messages: 53395-eventdetails-ms-iis-api-admin.txt.
These events were followed by an Application Pool restart:

EventID : 1
MachineName : servername
Data : {}
Index : 323434
Category : (0)
CategoryNumber : 0
EntryType : Error
Message : The description for Event ID '1' in Source 'Microsoft IIS Administration API' cannot be found. The local computer may not have the necessary registry
information or message DLL files to display the message, or you may not have permission to access them. The following information is part of the
event:'Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware
An unhandled exception has occurred while executing the request.
----////----
Source : Microsoft IIS Administration API
ReplacementStrings : {Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware
An unhandled exception has occurred while executing the request.

                 System.InvalidOperationException: Collection was modified; enumeration operation may not execute.  

----////----
InstanceId : 1
TimeGenerated : 12/30/2020 1:52:41 PM
TimeWritten : 12/30/2020 1:52:41 PM
UserName :
Site :
Container :

EventID : 0
MachineName : servername
Data : {}
Index : 323433
Category : (0)
CategoryNumber : 0
EntryType : Error
Message : The description for Event ID '0' in Source 'Microsoft IIS Administration API' cannot be found. The local computer may not have the necessary registry
information or message DLL files to display the message, or you may not have permission to access them. The following information is part of the
event:'Microsoft IIS Administration API encountered an unexpected error: System.InvalidOperationException: Collection was modified; enumeration operation
may not execute.
----////----
Source : Microsoft IIS Administration API
ReplacementStrings : {Microsoft IIS Administration API encountered an unexpected error: System.InvalidOperationException: Collection was modified; enumeration operation may
not execute.
----////----
InstanceId : 0
TimeGenerated : 12/30/2020 1:52:41 PM
TimeWritten : 12/30/2020 1:52:41 PM
UserName :
Site :
Container :

Thanks in advance for any help,
Jose

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

1 answer

Sort by: Most helpful
  1. Jose Lopez 1 Reputation point
    2021-01-08T17:49:42.057+00:00

    SamWu,

    Apologies for not including this before. Today's errors seem to have happened around when w3ctrs refresh errors are being logged.
    Here is additional information about the configuration:
    Servers: Windows 2012 R2 with IIS 8.5
    OriginalFilename: iiscore.dll
    FileVersion: 8.5.9600.18735 (winblue_ltsb.170620-0600)
    OriginalFilename: w3wp.exe.mui
    FileVersion: 8.5.9600.16384 (winblue_rtm.130821-1623)

    MS IIS Admin API: Microsoft IIS Administration 2.3.0
    The configuration is the default one. Where would the below log files be found ? if they are being generated, I can't find them anywhere.
    "logging": {
    "enabled": true,
    "min_level": "error",
    "file_name": "log-{Date}.txt",
    "LogLevel": {
    }
    },
    "auditing": {
    "enabled": true,
    "file_name": "audit-{Date}.txt"
    },

    APM Agent: AppOptics .NET Agent 4.0.5
    No events in Application log from AppOptics APM agent when issue happens. Including it for information purposes.

    Thanks in advance