Migrate .NET App to Win Server 2019. System.Security.SecurityException: The source was not found.. Inaccessible logs: State

Lyn Xu 6 Reputation points
2022-11-22T05:22:44.12+00:00

I am testing an ASP.NET application on Windows Server 2019.

The application is loading well, but when I try to log out, the error below prompts.

Exception Details: System Security Security Exception: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security: State

I read somewhere, that we can edit permission rights in the REGEDIT folder as below, but I'm not able to save the changes. A pop up message from Window Security "Unable to save permission changes on state. Access is denied."

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\State

Does anyone have an insight as to what could be done here?

Thanks!

Lyn

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,480 questions
Internet Information Services
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,126 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor
    2022-11-23T07:31:01.777+00:00

    @Lyn Xu

    Make sure the application pool that the website is using in IIS is Local system or an administrator account.

    It is in the application pools -> advance settings -> Process Model -> Identity.

    263352-capture1.png

    263247-capture.png


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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