There is no argument given that corresponds to the required formal parameter – .NET Error

In the constructor of

public class ErrorEventArg : EventArgs

you have to add “base” as follows:

public ErrorEventArg(string errorMsg, string lastQuery) : base (string errorMsg, string lastQuery)
{
    ErrorMsg = errorMsg;
    LastQuery = lastQuery;
}

Leave a Comment