Thanks

 

The code does not try and create a an event source as far as I can tell.

 

It just uses the event log as follows

 

    Private Sub Form_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

        Try

            _mainForm = Me 'setup reference

            updatefrmMainText()

            _testCatalogue.AutoUpdate = False 'This prevents a webservice
call

            _testCatalogue.InitialiseCache()

            _testCatalogue.AutoUpdate = True 'Enables the timer to go
looking for updates

            getTestCatalogueDataColumnsUser()

        Catch ex As Exception

            eventLogWrite(EventLogEntryType.Error, "Error Occurred in
frmMain.Load()" & vbCrLf & "Message : " & ex.Message & vbCrLf &
ex.StackTrace)

            Throw

        End Try

    End Su

 

>From looking at the event log, entries are being written to the application
event log.

This is happening from within vs2010 and I am a local administrator.

 

Will this still work ok for joe blow ("normal user") on windows7/vista or
will there be problems.

What permissions are needed if any to write to the application event log.

I thought there was a security issue with writing to event logs by all.

 

I guess I could test this but I would rather find out before writing a new
test app.

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285 (Monday, Wednesday,Friday)

Phone : +618 9346 4372 (Tuesday, Thursday)
Mobile: 0423 540 825 
E-Mail : [email protected]; [email protected]
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Joseph Clark
Sent: Friday, 9 December 2011 2:02 PM
To: ozDotNet
Subject: Re: Event Log

 

As far I can remember from the last time I looked at this stuff... writing
to the event log as a Joe user is fine - the problem is that creating the
"event source" for the log entries required administrative escalation.




On Fri, Dec 9, 2011 at 4:24 PM, Peter Maddin <[email protected]>
wrote:

I am looking at maintaining an old vs2005 vb.net application.

 

This has been running on XP Pro workstations.

>From trawling through the code, I have found that it uses the event log for
recording errors.

 

I have open and converted the solution into VS2010.

I noticed that errors are being written to the application event log.

 

I suspect that on windows 7 (probably Vista as well) that a normal user may
run into problems when trying to write to the application event log.

 

Is this likely to be a problem if the application is installed on windows 7
and run by a user with minimal rights and permissions?

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285 <tel:%2B618%206396%204285>  (Monday,
Wednesday,Friday)

Phone : +618 9346 4372 <tel:%2B618%209346%204372>  (Tuesday, Thursday)
Mobile: 0423 540 825 
E-Mail : [email protected]; [email protected]
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 

 

Reply via email to