First step, what account are actually now running under? I sent you a code snippet in my previous post to figure it out, much easier than applying permissions to every account on your machine.
Now, as I mentioned in my previous post, the problem is not writing to the EventLog, it is creating the EventSource. Once this is created, your code will work. This unfortunately requires registry access as you have discovered. Here are three ways around this: 1) hacking the registry: http://objectsharp.com/Blogs/bruce/archive/2003/11/03/180.aspx or http://support.microsoft.com/default.aspx?scid=kb;en-us;329291 2) creating a windows app that writes to the same event source. This will run under your logged-in account (with adminstrative pemissions, of course) and create the event source 3) setting the identity in your asp.net application to your logged in account via the web.config file, running the app and thereby creating the event source. Just don't forget to remove it. <identity impersonation="true" userName="domain\username" password="yourpassword" /> On 7/14/05, Osama M.Bahgat <[EMAIL PROTECTED]> wrote: > Well, I found the file machine.config and changed the identity to userName > ="system" and impersonation = "false" but the same exception still exist. > i granted the permissions to my project filder which is running under wwwroot > I granted permissions as an administrator to aspuser, network, services, > debugger. > and the exception is still here :( > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > [Non-text portions of this message have been removed] > > > > > Yahoo! Groups Links > > > > > > > -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
