W
Web Developer
When errors occur in my ASP.Net apps, I write them to the application event
log. However, I can't write to the log if my web app isn't registered as a
valid EventLog source (as designated by the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\
registry key). If my app tries to create the key on-the-fly, I get a
"Requested registry access is not allowed." exception.
I tried creating a custom CASPOL permission set called LocalIntranetExtended
that inherited from LocalIntranet and added a Registry permission with write
and create options for the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\
key. Then I set the CASPOL LocalIntranet_Zone's permission set to
LocalIntranetExtended, but it din't resolve the issue.
How can I create a CASPOL policy to allow the W3WP.exe process to create
registry entries under the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\?
I don't want to create .reg files for each new web app to create the keys
manually. I'd rather give permissions to the worker process to create them
on the fly.
Thank you!
log. However, I can't write to the log if my web app isn't registered as a
valid EventLog source (as designated by the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\
registry key). If my app tries to create the key on-the-fly, I get a
"Requested registry access is not allowed." exception.
I tried creating a custom CASPOL permission set called LocalIntranetExtended
that inherited from LocalIntranet and added a Registry permission with write
and create options for the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\
key. Then I set the CASPOL LocalIntranet_Zone's permission set to
LocalIntranetExtended, but it din't resolve the issue.
How can I create a CASPOL policy to allow the W3WP.exe process to create
registry entries under the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\?
I don't want to create .reg files for each new web app to create the keys
manually. I'd rather give permissions to the worker process to create them
on the fly.
Thank you!