Could not locate the add-in library

ACAEACAE Member Posts: 52
edited 2013-06-12 in NAV Three Tier
Hello,
I have a problem with an add-in in the RTC (Nav2009 R2, build 6.0.33046.0). On the page I want to show the add-in I get the error message "Could not locate the add-in library for '...;PublicKeyToken=...' .
My colleague connects to the same SQL server database, same RTC version, and the add-in is shown on his computer. So I assume that both the add-in name and token are correct in the addins table.

This is what I have already tried without success:
- I copied the add-in directory of my colleaque to my RTC directory
- I ran the RTC as administrator (OS= Win7 Professional SP1)
- Microsoft Visual C++ 2008 Redistributable Package is installed
- Removed version from client addin table

Other add-ins (like tree-map view, connect, and 'home-made') do work properly.
Does anyone have an idea ?

Thx in advance,
Andy

Comments

  • AvallackAvallack Member Posts: 18
    Try to register your addin with a Client Register Addin. You can found this tool on web site :

    http://blogs.msdn.com/b/cabeln/archive/ ... ected=true
    Navision Technical Consultant & .Net Developer
  • ACAEACAE Member Posts: 52
    I have tried this, but I get an error about another DLL. The add-in has some additional DLL's that are needed, and apparantly the tool tries to register them all instead of only the one selected.
  • ara3nara3n Member Posts: 9,256
    well include the other dll files.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • AvallackAvallack Member Posts: 18
    Can you link a screenshot ?
    Navision Technical Consultant & .Net Developer
  • ACAEACAE Member Posts: 52
    ara3n wrote:
    well include the other dll files.
    Hello,
    I didn't know it was possible to select multiple files :oops:
    I included the file, but now nothing is registered: i get the message 0 Add-In registration(s) added 0 Add-In registration(s) updated
  • ACAEACAE Member Posts: 52
    Avallack wrote:
    Can you link a screenshot ?
    I added 2 screen shots, 1 with the 'working' add-in, and one with the invalid add-in
  • AvallackAvallack Member Posts: 18
    ACAE wrote:
    Avallack wrote:
    Can you link a screenshot ?
    I added 2 screen shots, 1 with the 'working' add-in, and one with the invalid add-in

    Ok, and in Client AddIn propertie , can you see your addin ?

    To Register a new addin :
    1 °) copy your dll in ~\RoleTailored Client\Add-ins
    2 °) Execute Client Register Addin form, press button ... so this action 'll install new addins

    This process must be execute on each computer.

    I hope what your problem 'll be fix.
    Navision Technical Consultant & .Net Developer
  • ACAEACAE Member Posts: 52
    Avallack wrote:

    Ok, and in Client AddIn propertie , can you see your addin ?

    To Register a new addin :
    1 °) copy your dll in ~\RoleTailored Client\Add-ins
    2 °) Execute Client Register Addin form, press button ... so this action 'll install new addins

    This process must be execute on each computer.

    I hope what your problem 'll be fix.

    I can see the add-in, it is correctly registered in the table as I can use the add-in from another PC when I connect to the same database.
    I have done this, but this doesn't solve the problem.
  • ara3nara3n Member Posts: 9,256
    I've seen instances where the other dll had to be in the same folder as the RTC client. Try to put the other dll in that folder.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ACAEACAE Member Posts: 52
    ara3n wrote:
    I've seen instances where the other dll had to be in the same folder as the RTC client. Try to put the other dll in that folder.
    All DLL's are in the same folder. That is what I don't understand, it should work but I don't know why it doesn't. I have already created some add-ins, and only this one doesn't seem to work
  • ara3nara3n Member Posts: 9,256
    no put the other dll in RoleTailored Client folder. i had to do this for an external dll my adddin was using
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ACAEACAE Member Posts: 52
    ara3n wrote:
    no put the other dll in RoleTailored Client folder. i had to do this for an external dll my adddin was using
    This works \:D/

    Thanks a lot for your help, I wouldn't have found this.

    Regards,
    Andy
  • ara3nara3n Member Posts: 9,256
    You're welcome.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • AsallaiAsallai Member Posts: 141
    Dear Gurus,
    I have a same problem with this subject. :?
    I have tried all of steps above, but the DLL, what I would like to use, does not work on a Remote Server.
    The situation:
    1 on my local computer, the DLL is work well, without any error
    2 a few days ago, a server was implemented and all of database and environment are moved to this server which is access via RDP

    The DLL's was copied into the c:\Program Files (x86)\Microsoft Dynamics NAV\70\RoleTailored Client\Add-ins\ folder.
    Now, when I login into the server, run that RTC, these DLL's does not works anymore. :?
    But, if I open an RTC on my local computer, open that serves's database, the DLL is works properly!

    The error message is on the server is: Could not locate the add-in library for ...
    The Public Token Key and Name is the same as on my computer.
    These DLL's registered into the Client-Addin table.
    I made a brand new page with these DLL's, but nothing :(

    Why this error message on the Server? The login and the Network Service account has rights to read this folder, but RTC cannot find it.

    Do you have any idea about this siutuation?

    I really appreciate your help!
    Thank you.
  • AsallaiAsallai Member Posts: 141
    Asallai wrote:
    Dear Gurus,
    I have a same problem with this subject. :?
    I have tried all of steps above, but the DLL, what I would like to use, does not work on a Remote Server.
    The situation:
    1 on my local computer, the DLL is work well, without any error
    2 a few days ago, a server was implemented and all of database and environment are moved to this server which is access via RDP

    The DLL's was copied into the c:\Program Files (x86)\Microsoft Dynamics NAV\70\RoleTailored Client\Add-ins\ folder.
    Now, when I login into the server, run that RTC, these DLL's does not works anymore. :?
    But, if I open an RTC on my local computer, open that serves's database, the DLL is works properly!

    The error message is on the server is: Could not locate the add-in library for ...
    The Public Token Key and Name is the same as on my computer.
    These DLL's registered into the Client-Addin table.
    I made a brand new page with these DLL's, but nothing :(

    Why this error message on the Server? The login and the Network Service account has rights to read this folder, but RTC cannot find it.

    Do you have any idea about this siutuation?

    I really appreciate your help!
    Thank you.

    Okay. I have found the solution. Because this dll was made for the NAV2009, and it used a Microsoft.Dynamics.Framework.UI.Extensibility.dll, the NAV2013 Microsoft.Dynamics.Framework.UI.Extensibility.xml is different and changed. A new Solution recompile was necessary, and now this dll is works under NAV2013.
    I did not see this problem, because NAV2009 and NAV2013 is on my computer, but only NAV2013 is on the server. That is why this dll is works on my computer.
    Thank you.
Sign In or Register to comment.