The Basic Concept of LastErrorText

There are a few important things about the LastErrorText: 1) Each Chilkat method call (or property access) clears the LastErrorText and writes new information about what transpired during the method call.  This information is available regardless of the success/failure of the method call.  Most Chilkat objects include a VerboseLogging property that controls whether more or less information is recorded.  Only […]

LastErrorText Standard Information

All Chilkat classes / components use a property named LastErrorText.  It provides a way to get detailed information about what happened during any Chilkat method call.  The LastErrorText will contain information even when the method call is successful. In almost every case, the LastErrorText will begin with information such as this: ChilkatLog: Decrypt: DllDate: Nov 14 2021 ChilkatVersion: UnlockPrefix: […]

Username in LastErrorText

Question: I discovered that the program is trying to use the Computer System Username to instead of the username given in the program code to connect to the server. Answer: The Chilkat component is not trying to use the Computer System username. The LastErrorText will (almost) always include the process’s logged-on username in the beginning, along with other pieces of information […]


The first step in debugging a Chilkat method that returns a failed status is to examine the contents of the LastErrorText property. The LastErrorText property will contain information about the last method call on the object. For example: success = mailman.SendEmail(email); textBox1.Text = mailman.LastErrorText; The LastErrorText property is standard on all Chilkat classes/objects.  The error information may also be accessed […]