Eventlog
No edit summary
(Automatically adding template at the end of the page.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
MDrivenServer will try and write exceptions to the eventlog.
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.


===== Adding permissions for MDrivenServer to write to the Windows event log =====
===== 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
Allow the MDrivenServer process user access. Follow the solution here: https://stackoverflow.com/questions/1274018/system-security-securityexception-when-writing-to-event-log


Line 11: Line 11:
# Navigate/expand to the following key:  <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security</code>
# Navigate/expand to the following key:  <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security</code>
#* Tip: I set the permission on the whole EventLog node
#* Tip: I set the permission on the whole EventLog node
# 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 and Write permission  
# Give it Read and Write permission  


===== Adding permissions for an AppPool =====
===== Adding Permissions For an AppPool =====
# Enter '''IIS AppPool\<myappoolname>''' (eg: IIS AppPool\MDrivenServer) in the '''Enter the object names to select:''' text box.
# 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'''.
# Click the '''Check Names''' button and click '''OK'''.
# Check '''Modify''' under the '''Allow''' column, and click '''OK''', and '''OK.'''
# Check '''Modify''' under the '''Allow''' column, and click '''OK''' and '''OK.'''


(yes, you actually just type in IIS AppPool\ followed by the app pool name)
(Yes, you can just type in IIS AppPool\ followed by the app pool name).
[[Category:MDriven Server]]
[[Category:MDriven Server]]
{{Edited|July|12|2024}}

Latest revision as of 15:34, 10 February 2024

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

  1. Open the Registry Editor:
    1. Select Start then Run
    2. Enter regedt32 or regedit
  2. Navigate/expand to the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security
    • Tip: I set the permission on the whole EventLog node
  3. Right-click on this entry and select Permissions.
  4. Add the Network Service user, or to the user running the AppPool
  5. Give it Read and Write permission
Adding Permissions For an AppPool
  1. Enter IIS AppPool\<myappoolname> (eg: IIS AppPool\MDrivenServer) in the Enter the object names to select: text box.
  2. Click the Check Names button and click OK.
  3. 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).

This page was edited 89 days ago on 02/10/2024. What links here