That is a generic message it does not describe the actual error.

When do you get this message? Immediately at the start of the script or somewhere along the way?
You can find out what part is causing this by commenting out most of the script, run it and if all is ok uncomment the next part, run it, etc..... In the end you should find the part that creates the event log entry.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.