web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Select DotNet Variable does not show the class

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

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

  • Community Member Profile Picture
    on at

    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
    37,166 Most Valuable Professional on at

    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
    on at

    Here's the DLL Code:

    06.02.png

    I put the DLL on the Service Tier.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    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
    on at

    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.

  • keoma Profile Picture
    32,729 on at

    had the same issue.

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans