Create Event in Eventlog

I am attempting to write an Event to an Custom Eventlog on Windows 2008 R2 Server.
It's for an C# application which runs under the Standard User context, so i gave access to the Eventlog to an AD Group which includes the allowed users.
The steps how made that are described here:
http://technet.microsoft.com/en-us/library/cc722385(WS.10).aspx
(Under the “Delegating access to the event logs” section.)

In my application I receive the following error message:
System.Security.SecurityException: Requested registry access is not allowed.
When I am using the eventcreate tool it works successfully as long as I do not specify the source .
When I do attempt to specify the /so parameter with "eventcreate", I receive
"ERROR: Access is denied"

Because my C# application was pointing to an "registry acces is not allowed" I gave rights for the group on the eventlog section in the registry but thats not working either.

So does anyone knows how to solve that problem??

ManolaxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AwinishCommented:
You need to follow below article to give ASPNET user permission to read registry.

http://geekswithblogs.net/timh/archive/2005/10/05/56029.aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.