Dynamic .NET TWAIN: License does not exist or is invalid

Symptom:
You are trying to use Dynamic .NET TWAIN and are seeing the error: Your Licenses number for the "Module name" Doesn't exist or it's invalid.


Solution:

For .Net TWAIN 6.0 and above
1. Define the license key in your code as follows:
dynamicDotNetTwain1.LicenseKeys = "XX";

For .Net TWAIN 5.x and below
1. Delete the .licx file from the project.
2. Define the license key in your code as follows:
dynamicDotNetTwain1.LicenseKeys = "XX";