An invalid name was specified for the event log

An invalid name was specified for the event log. Usually this is a result of invalid characters in the name, a blank file name, or a file name that is too long.

To correct this error

  • If the specified name is more than eight characters, make sure there is no conflict with the names of other event logs. Only the first eight characters are evaluated when determining if the name is unique.

  • If supplying a path, make sure it is parsed correctly.

  • Check that there are no invalid characters in the name. Characters that cannot be used in a file name include <, >, :, ", /, \, and |.

See Also

Tasks

How to: Parse File Paths in Visual Basic

How to: Rename a File in Visual Basic

How to: Create and Remove Custom Event Logs