Skip to main content
Avalara Help Center

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


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

"Unhandled object exception: Class not registered"


Microsoft Dynamics GP


  • 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 Adapter\ right click and create a 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
  • 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 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.