Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Select DotNet Variable does not show the class

Posted on by Microsoft Employee

I've created a DLL and want to bind it in NAV. In the Assist Button for DotNet Variable, i can select my DLL but can not select the Class(.NET Type List) after that, although the DLL has a Class. 
The DLL seems fine, it has publickeytoken and is also set in Control Add-ins. I even restarted the Service.

*This post is locked for comments

  • keoma Profile Picture
    keoma 32,675 on at
    RE: Select DotNet Variable does not show the class

    had the same issue.

    changing the value of AssemblyVersion and AssemblyFileVersion in file AssemblyInfo.cs solved the issue.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Select DotNet Variable does not show the class

    It's solved. The problem was i build the DLL few times and imported them in Add ins folder. I think NAV took the old file, even when i restarted. I changed the File and Assembly Version and after that NAV found the Class.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Select DotNet Variable does not show the class

    It seems ok (static could be avoided). And on NAV, when you create a variable of type = DotNet and subtype = your class, what methods can you see? Can I have an image?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Select DotNet Variable does not show the class

    Here's the DLL Code:

    06.02.png

    I put the DLL on the Service Tier.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Select DotNet Variable does not show the class

    If your DLL is placed in the Add-ins folder in the RoleTailored Client folder or in the Service Tier folder, you should see the DLL and its members. Are the member public in your class?

    Maybe could be useful to show us the code.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Select DotNet Variable does not show the class

    At wich place I have to add this Attribute?

    The strange thing is, before I made a DLL too, with the excact same settings and implementation in NAV but there I could call the Classes. This time i don't.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Select DotNet Variable does not show the class

    Your methods should have [ApplicationVisible] attribute to ensure NAV will have access it when the add-in is bound to the NAV page.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans