Skip to Content
author's profile photo
Former Member

Add-On Problem Help

Hi all. I've built an Add-On using VB.NET. This Add-On uses both the UI and DI API's. In the dev't environment the program works great. I start SBO, run the program from VS.NET and the intended SBO screen is modified as I designed. It's all good.

However, I'm having problems with the function of the add-on from the SBO environment.

I used the sample Add-On Installer from the SDK as the basis for my setup package. I tested using the "Hello World" just to test and it worked fine. I then substituted my .exe name and file. I re-built the installer .exe, created the .ard file and added that with the Add-On Manager in SBO.

The Add-On seems to install fine, but when it goes to run (after restarting SBO), I get an error saying: "File or assembly name Interop.SAPbouiCOM, or one of its dependencies, was not found".

Obviously the UI-API is already installed and working on my machine. So I'm wondering where this error comes from. Do I need to do something more or different with the UI and DI API .dlls?

Any ideas?

Thanks,

Curtis

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Sep 30, 2005 at 08:44 PM

    It appears I've gotten past this error by putting the .dll into the installation directory. Is this correct? That would mean that all add-on's would require possilby the same .dll in their specific install directories.

    Anyway, I can manually start the program from the Add-on manager, and the green bar at the bottom shows the Add-on is connected. But then a few seconds later I get the message saying the Add-on is disconnected and it lets me choose whether to re-connect, disconnect from the current company or continue without the add-on.

    What gives?

    Thanks!

    Add comment
    10|10000 characters needed characters exceeded

    • Regarding the .dll's...

      - Yes its correct that the interop dlls must be copied to the install path.

      Regarding the disconnection...

      - This can be because of two thing (or at least I've had the problem on two different occations)

      1: Somewhere in the startup there is an unhandled exception

      see: SAP Business One SDK

      2: A least in C# the is a strange bug about the order the 3 main event are called matters (don't ask why).

      Try moving you appEvent code AFTER the menuevent and itemEvent code.

      See: problems-regarding-registration-of-the-addon