Eventlog
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
The eventlog may be restricted for the user running the MDrivenServer process. If this is the case you will see notes in MDrivenServer logs that is unable to write to eventlog. | The eventlog may be restricted for the user running the MDrivenServer process. If this is the case you will see notes in MDrivenServer logs that is unable to write to eventlog. | ||
===== Adding permissions for MDrivenServer to write to the Windows event log ===== | |||
Allow the MDrivenServer process user access. Follow the solution here: https://stackoverflow.com/questions/1274018/system-security-securityexception-when-writing-to-event-log | |||
# Open the Registry Editor: | # Open the Registry Editor: | ||
Line 12: | Line 13: | ||
# Right click on this entry and select Permissions | # Right click on this entry and select Permissions | ||
# Add the <code>Network Service</code> user, or to the user running the AppPool | # Add the <code>Network Service</code> user, or to the user running the AppPool | ||
# Give it Read permission | # Give it Read and Write permission | ||
===== Adding permissions for an AppPool ===== | |||
# Enter '''IIS AppPool\<myappoolname>''' (eg: IIS AppPool\MDrivenServer) in the '''Enter the object names to select:''' text box. | |||
# Click the '''Check Names''' button and click '''OK'''. | |||
# Check '''Modify''' under the '''Allow''' column, and click '''OK''', and '''OK.''' |
Revision as of 09:45, 14 April 2021
MDrivenServer will try and write exceptions to the eventlog.
The eventlog may be restricted for the user running the MDrivenServer process. If this is the case you will see notes in MDrivenServer logs that is unable to write to eventlog.
Adding permissions for MDrivenServer to write to the Windows event log
Allow the MDrivenServer process user access. Follow the solution here: https://stackoverflow.com/questions/1274018/system-security-securityexception-when-writing-to-event-log
- Open the Registry Editor:
- Select
Start
thenRun
- Enter
regedt32
orregedit
- Select
- Navigate/expand to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security
- Tip: I set the permission on the whole EventLog node
- Right click on this entry and select Permissions
- Add the
Network Service
user, or to the user running the AppPool - Give it Read and Write permission
Adding permissions for an AppPool
- Enter IIS AppPool\<myappoolname> (eg: IIS AppPool\MDrivenServer) in the Enter the object names to select: text box.
- Click the Check Names button and click OK.
- Check Modify under the Allow column, and click OK, and OK.
This page was edited more than 11 months ago on 02/10/2024. What links here