There are certain circumstances in our application in which non-fatal errors occur and the application is restored.
An example of this is the incorrect definition of some imported items when populating the specified items in the selection list. Errors will not cause the application to crash, but the user will be warned that some of the items failed to load.
In this case, the error is logged in the application event log as a warning. This is a non-fatal error that the application recovers, but entering the event log allows us to see the original error, if necessary.
Our problem is that the software must be installed with a Power User account. Not being an administrator account, we will not be able to create our own event sources for the application.
The goal is to record errors instead of the source of the Application event (which already exists in the application event log). However, this leads to the inclusion of text similar to the following.
Description for event id 0 from source application could not be found. Either the component that raises this event is not installed on your local computer, or the installation is corrupted. You can install or repair the component on the local computer.
This is because EventID is 0 when we write it. This approach will be implemented, but is there a better way? Is there a non-administration way to specify an EventID for the application event source to indicate that it came from our application?
Moslo
source share