שתף באמצעות


How to: Determine the Public Key Token of the Windows Client Control Add-in and .NET Framework Assembly

To use a Microsoft Dynamics NAV Windows client control add-in on a Microsoft Dynamics NAV Windows client page, you must register the assembly that contains the control add-in on the Control Add-ins page of the Microsoft Dynamics NAV 2018 database. To register an assembly, you provide the assembly's public key token. The public key token is a unique 16-character key that is given to the assembly when it is built and signed in Microsoft Visual Studio. To determine the public token key, you can run the Strong Name tool (sn.exe) on the assembly. The sn.exe is available with the Microsoft .NET Framework SDK. For more information about how to sign assemblies, see Strong Name Signing (sn.exe) or How to: Create a Windows Client Control Add-in.

To determine the public key token

  1. Locate the sn.exe file.

    The location will depend on your operating system and the installed Microsoft .NET Framework SDK. For example, C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin or C:\Utils\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64.

  2. At the command prompt, change to the directory that contains the sn.exe utility.

  3. Type the following command.

    sn.exe -T <assembly>  
    

    Replace <assembly> with the add-in assembly's path and file name, such as C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Add-ins\MyCompany.MyProduct.RtcAddins.dll.

  4. Press Enter and note the public token key that is displayed.

See Also

Windows Client Control Add-in Overview
Developing Windows Client Control Add-ins
How to: Create a Windows Client Control Add-in
Installing and Configuring Windows Client Control Add-ins on Pages
How to: Install a Windows Client Control Add-in Assembly