Skip to main content
Avalara Help Center

In Dynamics GP, how do I resolve the error: "Class Not Registered"?

Overview

While working in Dynamics GP, you receive the following error:

"Unhandled object exception: Class not registered"

Environment

Microsoft Dynamics GP

Resolution

  • This error message indicates the AvaTax .dll hasn't been properly registered on the machine in question.
    • Make sure you're a local administrator to the machine in question; without proper permission, the .dll can't be registered
    • In c:\program files\avalara\avatax connect adapter\ right click and createa text document and copy and paste the following text:
      • C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe avalara.avatax.adapter.dll /unregister
        C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe avalara.avatax.adapter.dll /tlb /codebase
        Pause
  • Name the file register.bat and place it in the Binfolder of your Avalara directory on the local drive.
    • The default location for this folder is c:\program files\avalara\avatax connect adapter\
  • Once the file is created, run the file and test connection again.
  • If this still hasn't resolved the issue and you're in a 64 bit environment, try the following:
    • Go to Start > Accessories and then right-click the Command icon and select Run as administrator
    • Once in the command prompt, navigate to the Bin folder where the batch file above was created
    • Type register

Next steps

For more information about Microsoft Dynamics GP, see our guide.