Re: Event Log

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Derek Harmon (loresayer_at_msn.com)
Date: 09/16/04


Date: Wed, 15 Sep 2004 20:13:51 -0400


"Marathoner" <Marathoner@discussions.microsoft.com> wrote in message news:BDF797F7-A0FC-4A3B-BAA2-86243E38F1B9@microsoft.com...
> I am tring to write to a custom event log on a Web Server from a Web Service
: :
> I am currently running on my localhost. I get an error when I check so see
> if the custom event log exists. The error I get is:
>
> Requested registry access is not allowed.

Yes, depending on what identity the Web Service runs under, it's privileges are
limited. In particular, event log access is prohibited by default in the ASP.NET
account. See the sub-topic, "Event log," in the following Microsoft knowledge
base article that explains why:

    http://support.microsoft.com/default.aspx?kbid=317012

Derek Harmon

(P.S., Followup-to microsoft.public.dotnet.framework.aspnet.webservices,
this discussion would probably attract greater interest there.)



Relevant Pages

  • Re: Write to IIS/Event Log File ?
    ... >with an exception that might arise, ... >either in the web service, ... >Writting to the event log threw me Security Exceptions, ... NET Framework Class Library: ApplicationActivationAttribute ...
    (microsoft.public.dotnet.general)
  • Re: Problem referencing web service
    ... > It is my web service and it works fine on my local server. ... Given that this is a web service, you'd probably want to write the error to ... You would want to create an event log ... That will run the event log installer to install the event source, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS default install wont work - Bad Request all the time
    ... > Check the event log for entries related to this, ... > address of the server, check to see if the web service is running. ... Okay Web service is definitely running. ...
    (microsoft.public.inetserver.iis)
  • Web service timeouts
    ... The details in the event log suggest that an HttpException occurred ... The request has been aborted. ... A timeout is mentioned later on. ... have I done anything wrong with my web service or is it ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: WSE Adapter - Delivered, Not Consued
    ... Did you copy the WSE adapter policy file to the new server? ... nothing in the Event Log? ... > the web service, and there is no sign of any requests coming through - ... > all the relevant information in it - such as transport type etc. ...
    (microsoft.public.biztalk.general)