Eventlog
(Created page with "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 n...") |
(Updated Edited template to July 12, 2025.) |
||
(14 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
MDrivenServer will try | <message>Write the content here to display this box</message> | ||
MDrivenServer will try to 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. | The eventlog may be restricted for the user running the MDrivenServer process. If this is the case, you will see notes in the MDrivenServer logs that it is unable to write to the eventlog. | ||
To | ==== Adding Permissions For MDrivenServer To Write to the Windows Eventlog ==== | ||
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: | ||
## Select <code>Start</code> then <code>Run</code> | ## Select <code><span class="col-black">Start</span></code> then <code><span class="col-black">Run</span></code> | ||
## Enter <code>regedt32</code> or <code>regedit</code> | ## Enter <code><span class="col-black">regedt32</span></code> or <code><span class="col-black">regedit</span></code> | ||
# Navigate/expand to the following key: <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security</code> | # Navigate/expand to the following key: <code><span class="col-black">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security</span></code> | ||
# Right click on this entry and select Permissions | #* Tip: I set the permission on the whole EventLog node | ||
# Add the <code>Network Service</code> user | # Right-click on this entry and select Permissions. | ||
# Give it Read permission | # Add the <code><span class="col-black">Network Service</span></code> 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.''' | |||
(Yes, you can just type in IIS AppPool\ followed by the app pool name). | |||
[[Category:MDriven Server]] | |||
{{Edited|July|12|2025}} |
Latest revision as of 05:49, 20 January 2025
This page was created by Hans.karlsen@mdriven.net on 2019-11-14. Last edited by Edgar on 2025-01-20.
MDrivenServer will try to 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 the MDrivenServer logs that it is unable to write to the eventlog.
Adding Permissions For MDrivenServer To Write to the Windows Eventlog
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.
(Yes, you can just type in IIS AppPool\ followed by the app pool name).