SetRegistrationCode Causes IIS to Generate a Memory Error
Toolkit attempted to read or write protected memory.
Probable Cause
This is often an indication that other memory is corrupt.
Error example:
at APToolkitNET.ToolkitWrapper.APTK_GetPropertyVDSSI(int32 zToolkit, Boolean isAnsi, Int32 zObjectPointers, Int32 propType, String stringValue1, String stringValue2, Int16 shortValue) at APToolkitNET.ToolkitSetRegistrationCode(String UserString, String LicenseKey) at IRS.DataAccess.Equipment.PrintAgreements.ToolkitRegistration()
Resolution
To solve this problem, enable 32-bit applications in your Internet Information Services (IIS) Manager.
- Go to the IIS Manager:
Control Panel > System and Security > Administration Tools > Internet Information Services (IIS) Manager
- In the IIS Manager, in the far left Connections pane, click on the + sign and select Application Pools.
- In the main Application Pools pane that displays, right click on the application pool and select Advanced Settings.
- In the Advanced Settings dialog box, in the top General section, select Enable 32-Bit Applications, and set to True.