Represents the event code indicating that the event code value is not allowed. This field is constant.
Value: -1
The WebEventCodes.InvalidEventCode represents the use of a code value that is not allowed by the system. For instance, this can happen if you customize an ASP.NET health-monitoring event and use a code value that is already assigned by the system.