Re: Writing to eventlog



"Leszek" <marek@xxxxxxxxxxx> wrote in message
news:%23Z3W2GEHGHA.2300@xxxxxxxxxxxxxxxxxxxxxxx

> I'm creating application, that will get data from SQL and show it. The end
> of it is writing to log informations from which table it was readed.
> And there is a problem - Requested registry acces is not allowed.
> I know, that it is running in context of ASP.NET (or Network Service), but
> how can i do this, that will run as "someuser", that will be a domain
> user?
> Maybe there is other method for it?

If your app is running on an intranet server that you or your company
controls, you can do this easily with impersonation. Basically, you create a
domain user account and tell your app run under that account. Then, you
assign whatever privileges you need to the account to make your app work. Do
a Google search for ASP.NET & impersonation. If necessary, you can encrypt
the account's username and password using the ASPNET_SETREG utility.

However, if this is a public website hosted with a 3rd party ISP, chances
are you won't be able to do any of the above, so you'll have to find another
solution. One thing I do is, instead of writing application errors to the
Event log, I email them to myself - not ideal, but it works.


.



Relevant Pages

  • Re: Writing to eventlog
    ... >> end of it is writing to log informations from which table it was readed. ... > a domain user account and tell your app run under that account. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Oh.... Im just wondering whos seen this stumper...
    ... A guy running code under an account ... read/write effective permissions. ... Now his code fails writing to OTHER ... authentication is written in the script. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Display contents of text file in the Browser
    ... It sounds like your app is attempting to read from the file at the same time ... that it is writing to it, ... process and attempting to read the file and display it at the same time. ... memory, and return that string to the client, while launching a separate ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Writing and the Tower of Babel story
    ... and the Tower of Babel story? ... within the timeframe of the biblical account? ... but isn't it a but odd that most or all writing seems to have begun ...
    (talk.origins)
  • how to know the parameters of sys_open and sys_unlink system calls of all apps.
    ... I am writing this application that is designed as follows. ... As long as the app is running on the ... Alessandro rubbini's linux device drivers' book with the first couple ... design pointers as to how I accomplish this ...
    (comp.os.linux.development.apps)