cancel
Showing results for 
Search instead for 
Did you mean: 

Add-on

Former Member
0 Kudos

I have created a form using screen painter.I have added a new button btnIISP

in the item master form.On clicking this button the new form created through

screen painter open's.

I have created addon for the above application.But the addon gives error.

I have used following as connectionstring-


sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"

When I used the above connection string I got error as,

Add-on connection timed out.

Then I changed the connection string as,


sConnectionString = Environment.GetCommandLineArgs.GetValue(1)

When I used this connection string I got error as ,

The requested lookup key was not found in any activation context.

These are the errors generated during the execution of addon.The error vary on

change of connection string.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Dear friends,

Thanks for spending u r valuable time in helping.

The problem was with SBO_Application object.For this application I am using to class files clsDetails and clsEditItem.I had declared the SBO_Application in both the files.clsEditItem is called first and then clsEditItem.SBO_Application works fine in clsEditItem but when it is declared again in clsEditItem it gave above error.So I created a module as

Module CommonFunctions

Public WithEvents SBO_Application As SAPbouiCOM.Application

Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent

End Sub

End Module

I hadled the events of SBO_Application object in this module

Former Member
0 Kudos

Hi,

check that DI service in server. Given me ur kind of license you have in server.

regards,

HARI BASKAR

Former Member
0 Kudos

Hari,

We have both professional and development license.

I haven't provided addon Identifier while creating add-on.Is this the reason for the above error ?

Former Member
0 Kudos

Hi,

C:\Program Files\SAP\SAP Business One & delete AddOnsLocalRegistration.sbo and AddOnsInstall.sbo

file .

And restart ur server ...lets try

Regards,

Avijit

Former Member
0 Kudos

Billa and Avijit ,

I tried above methods but it did not worked.

Former Member
0 Kudos

Hi...

Take ur system itself RDC and run ur Ard..

Regards...

Billa 2007

Former Member
0 Kudos

I haven't given AddonIdentifier string which is obtained after getting License key name.Is it necessary to specify License key name for running add-on ? Has the error occured because of this ?

Former Member
0 Kudos

Dilip,

Use


sConnectionString = Environment.GetCommandLineArgs.GetValue(1)

and put the "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056" in your project command line arguments.

Visual Studio: Project -> ADD_ON_NAME Properties -> Debug -> Command Line Arguments.

Regards,

Vítor Vieira

Former Member
0 Kudos

Vitor,

I have already added this connection string in command line argument.

Former Member
0 Kudos

Dilip,

Please copy the Single Sign-On code from one of the samples, and paste it in your add-on. There must be something wrong with your code.

Regards,

Vítor Vieira

Former Member
0 Kudos

Vitor,

I am referring the following sample code provided by SAP i.e .

C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\14.AddOnInstaller

My application is running perfectly in the debug mode but when I start addon it gives error.I have created another add-on for crystal report using above code and it is working.

I searched on net for the error -

The requested lookup key was not found in any active

activation context

This is system error as-

Error Code-14007

Error Name-ERROR_SXS_KEY_NOT_FOUND

Reason-A component version required

by the application conflicts

But I could not find the solution to fix the error.

Regards,

Dilip Kumbhar

Edited by: Dilip Kumbhar on Sep 15, 2008 4:35 PM

Edited by: Dilip Kumbhar on Sep 15, 2008 5:33 PM

Former Member
0 Kudos

Check if you are referencing the correct dll's namely sapboui and sapbobs.Have u made the addon correctly,added the correct dll and exe in \debug etc...

Regards

Raghu

Former Member
0 Kudos

Raghu,

I have copied sapboui and sapbobs from the bin directory to the add-on folder.The application is running in debug mode but it created problem when add-on is created.

Former Member
0 Kudos

Hi..

when u make create addon(build) that time u change release mode and u have to give command line arguments

5645523035496D706C656D656E746174696F6E3A49313333353236323030317254A98419CC491BDC761297485409ED7D3ACEB3

It will work..

Regards..

Billa 2007

Former Member
0 Kudos

Billa,

I tried above method but it did not worked.

Former Member
0 Kudos

Hi..

when make (generated) ard u have increase version (exm 1.0 make 2.0) and install time make 30 seconds.

Regards..

Billa 2007

Former Member
0 Kudos

Billa,

I tried above method but it did not worked.

Former Member
0 Kudos

Administration -> License -> Add-On Identifier Generator

Do I need to generate new connection string for add-on ? Do I need to specify the license key name ?

Former Member
0 Kudos

hi..

delete all temp file and run ard.

Regards,,

Billa 2007