question

LynXu-0585 avatar image
0 Votes"
LynXu-0585 asked SamWu-MSFT answered

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

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-2019windows-server-iisdotnet-runtime
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered

@LynXu-0585

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.


capture1.png (8.5 KiB)
capture.png (10.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.