cancel
Showing results for 
Search instead for 
Did you mean: 

Addon Error

Former Member
0 Kudos

Hai To All,

I created one module in vb.net code.When i run the application its working fine. Then i created .ard file for that addon. When i run the ard file its giving following error.

"An attempt was made to reference a token that does not exist."

"SAP Business One application not found"

Its an urgent requirement can anyone help me out......

Regards,

Anitha

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Anitha,

I expect, that from delevopment its working fine and you have created installer for the exe file you created from Visual Studio and to exe created from installer you made ard file. ok?

If yes, the error occurs by installation of the addon - select ard file, than is automatically filled exe file and you click Install button?

If yes, is the same problem on all pcs or only on one specific computer?

Former Member
0 Kudos

In all computers i had this problem. Actually i am refering two .net projects iam convert tht into dll and while creating my addon iam refering this two dll.

Without refering my ard file is working good. If i refer tht the error is triggering.

Regards,

Anitha

Former Member
0 Kudos

ok, and when on one computer you will manualy register the libraries, works it?

Former Member
0 Kudos

What u asking i cant get u?

Regards,

Anitha

Former Member
0 Kudos

You have dll libraries for your project and to those libraries you referencing from addon exe file. When you manually register the libraries in one computer, works it?

Former Member
0 Kudos

s it works.I just explain in brief.

I have Project 1,Project 2 and my addon

I Convert the Project 1 and Project 2 as .dll. Becoz there is some function where iam refering to my addon.

I open the application and run my code that time all working fine. Now i want to give it to my client so iam converting that addon to .ard file. While creating .ard i knw tht it will ask all the refernce file of my project. so i include all the files and .dll files.

After creating .ard file iam installed in Addon Administration. While i click the start button the addon gets connecting tht time i had this error.

Regards,

Anitha

Former Member
0 Kudos

Anitha,

the problem is, that when you are including the dll files to your instal file for addon, there the dll files will be only copied to addon destination path and not registered. I think that solution for this should be:

1. inside of instalation process after copying dll files register it as regsvr32 name.dll

or

2. before instalation of addon copy and register the dll libraries

Former Member
0 Kudos

Sorry yar can u explain me in brief?

Regards,

Anitha

Former Member
0 Kudos

You have the dll files as embeded resource in addon, ok? In installation process the emebedded resources are copied into addon instalation directory. The problem is, that the file is only copied, but not registered and the dll files needs to be register with regsrv32 nameoffile.dll

The registering you should do after copuing the files. Is it clear now?

Former Member
0 Kudos

Thank Petr,

I think iam disturbing more....thanks for ur explanation.But how to register the .dll files??

Former Member
0 Kudos

I dont know how you have installer created, but before ending the installer register the files as

regsrv32 path/nameoffile1.dll

regsrv32 path/nameoffile2.dll

this should done for example so, that you will create some bat file, inside this bat file will be the lines above and you will call the bat file as

System.Diagnostics.Process.Start("C:\register.bat")

Former Member
0 Kudos

While creating ard file we have to give this path??

Regards,

Anitha

Former Member
0 Kudos

No, the code must be inside the generatin exe file which you gave as path to ard file.

Former Member
0 Kudos

Petr,

Before creating addon iam registering as regsvr32 "<filename.dll>". But there is an error

*"Client.dll was loaded,but the DllRegistrServer entry point was not found.

DllRegisterServer may not be exported, or a corrupt in memory"*

wht to do dont knw? Do u have any idea abt this??

Or is there any other way?

Regards,

Anitha

Former Member
0 Kudos

Anitha,

I dont know, but with google I found one page which should solve your problem

http://www.vbforums.com/archive/index.php/t-296693.html

Former Member
0 Kudos

Nobody have idea about this.................

Regards,

Anitha

Former Member
0 Kudos

hi nazir,

Look into this thread..it may help u.