G
Guest
Hi all,
I am facing one problem while generating the entries in the EventLog in
ASP.NET.
That error is " registry access is not allowed". So i found some code in
the google regarding registry access. So i followed it and finally working
well.
I set those permissions manually(Not programmatically). But i want it
programatically. The steps are given below.
Can you help me how to set the below steps programmatically.
1. Launch RegEdit
2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Services\EventLog\
3. From the menu, select Edit->Permissions
4. Click the Add button and write ASPNET. (if ASP.NET is running under a
different user id, use that id instead)
5. Click OK.
6. Select the newly added user from the list (ASP.NET Machine User by
default).
7. Click on Full Control in the Allow column.
8. Click OK.
It is usually a good idea at this point to restart IIS with the IISReset
command (Start | Run | IISReset).
regards
Srihari k
I am facing one problem while generating the entries in the EventLog in
ASP.NET.
That error is " registry access is not allowed". So i found some code in
the google regarding registry access. So i followed it and finally working
well.
I set those permissions manually(Not programmatically). But i want it
programatically. The steps are given below.
Can you help me how to set the below steps programmatically.
1. Launch RegEdit
2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Services\EventLog\
3. From the menu, select Edit->Permissions
4. Click the Add button and write ASPNET. (if ASP.NET is running under a
different user id, use that id instead)
5. Click OK.
6. Select the newly added user from the list (ASP.NET Machine User by
default).
7. Click on Full Control in the Allow column.
8. Click OK.
It is usually a good idea at this point to restart IIS with the IISReset
command (Start | Run | IISReset).
regards
Srihari k