Re: ASPNET can't write in event log on win XP

From: Stephane (Stephane_at_discussions.microsoft.com)
Date: 01/18/05


Date: Tue, 18 Jan 2005 12:29:05 -0800

Hi,

Where can I know for sur on which account ASP.net is running?

However, I used the impersonation in web.config to solve my problem. I guess
it's not the best way to solve that, but at least it works on my developement
server.

<identity impersonate="true" userName="stephane" password="12345"/>

Thanks,

Steph

"Kevin Spencer" wrote:

> > I tried your solution and it didn't work. I also put ASPNET in
> > adminstrator
> > group and it still not working... I get the same error.
>
> If you tried it and it didn't work, you didn't try it right. You might want
> to make sure that the account you assigned permissions to is the account
> under which your local ASP.Net app is running. Other than that, GIGO.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> ..Net Developer
> Neither a follower nor a lender be.
>
> "Stephane" <Stephane@discussions.microsoft.com> wrote in message
> news:9D0C5416-4A36-4F83-B379-E258D99C949A@microsoft.com...
> > Indeed, I remove full control for everyone... ;-)
> >
> > I tried your solution and it didn't work. I also put ASPNET in
> > adminstrator
> > group and it still not working... I get the same error.
> >
> > I running short of ideas!!
> >
> > any other idea?
> >
> > Thanks,
> >
> > Steph
> >
> > "Kevin Spencer" wrote:
> >
> >> > I didn't have this problem on windows 2000. But since I'm on Win XP
> >> > now, I
> >> > have to solve this. I set full control to everyone on every drive of
> >> > my
> >> > computer and it still not working...
> >>
> >> You might want to undo that. Kind of dodgy in terms of security.
> >>
> >> Changing file and folder permissions isn't going to help anything. You
> >> need
> >> to change permissions for the Event Log. That's not a drive, and it's not
> >> a
> >> folder. See the following article (which I Googled) to find out how:
> >>
> >> http://searchvb.techtarget.com/vsnetTip/1,293823,sid8_gci887779_tax293033,00.html
> >>
> >> --
> >> HTH,
> >>
> >> Kevin Spencer
> >> Microsoft MVP
> >> ..Net Developer
> >> Neither a follower nor a lender be.
> >>
> >> "Stephane" <Stephane@discussions.microsoft.com> wrote in message
> >> news:A55975E2-6C98-47FB-B07C-E99B14421E24@microsoft.com...
> >> > Hi,
> >> >
> >> > I'm sorry, this question is also posted in dotnet.framework, I don't
> >> > know
> >> > in
> >> > which newsgroup my question belongs to...
> >> >
> >> > I'm trying to write in the event log and it looks like it's any of my
> >> > applications which are called by ASP.NET that are having trouble with
> >> > event
> >> > log. Here's the
> >> > error:
> >> >
> >> > System.InvalidOperationException: Cannot open log for source {0}. You
> >> > may
> >> > not have write access. ---> System.ComponentModel.Win32Exception:
> >> > Access
> >> > is
> >> > denied
> >> >
> >> > I didn't have this problem on windows 2000. But since I'm on Win XP
> >> > now, I
> >> > have to solve this. I set full control to everyone on every drive of
> >> > my
> >> > computer and it still not working...
> >> >
> >> > Any idea of how to set permissions so ASPNET can write in event log in
> >> > Win
> >> > Xp?
> >> >
> >> > Thanks,
> >> >
> >> > Steph
> >> >
> >> >
> >>
> >>
> >>
>
>
>



Relevant Pages

  • how to be administrator
    ... >how do i become a adminstrator on my computer? ... the easiest way is to log into the built in account called ... Then, from there, open the control panel, user manager ... administrator group. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Recommended Reading
    ... class-- I've read it a couple of times, but it's been awhile... ... written about that crime that gave a full, journalistic account of it. ... Steph! ...
    (alt.true-crime)
  • Re: System hangs on start-up. ???
    ... adminstrator and added another user account. ... account as an adminstrator and changed the former account to restricted user. ... Enjoy the balance of your day, Vogel. ... > How to Remove Welchia worm ...
    (microsoft.public.windowsxp.general)
  • RE: Administrator
    ... home user to adminstrator and now I can't do system restore or anything to ... get my home computer back to where it was, I can't ebven download anything ... anymore as I have to be an adminstrator maybe you can shed some lite on how ... If I do that on my account, ...
    (microsoft.public.windowsxp.general)
  • windows xp pro task manager
    ... non-admin account to have more permissions (local security ... >adminstrator on my system but every time i try to go into ... >my task manager it says "task manager has been disabled by ...
    (microsoft.public.windowsxp.security_admin)