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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Support for .NET interop in Code Unit using .NET Framework 4.7.1

(0) ShareShare
ReportReport
Posted on by 5

Hi,

We have a library that we're trying to use as an Addin with Navision 2013 (NOT R2).  Our library is compiled and targeted towards the .NET framework version 4.7.1. It also uses Log4Net to write to the event log and create log files.

It seems like other libraries we used that were compiled in 4.7.1 worked.  However, I want to confirm this is supported.

Additionally, although the object seems to run......nothing wrote to the event log...and our log file was not created.  This should have thrown an error within Navision....but there doesn't seem to be anything reported.....

Is there some place where Navision actually logs error information generated by code unit assemblies?

Also....does anyone know what EXE the codeunits actually run under (their context)?

kind regards,

Marty

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

    DotNet variables are supported.

    Regarding the context: a DotNet variable (.NET dll) can runder on client or on server (you specify this when you declare the DotNet variable in NAV). If it's RunOnClient = true it runs on the client machine and must be placed in the addin subfolder of the RTC client. Otherwise it runs on the server side and must be placed in the addin subfolder of the service tier. Regarding the log: if it fails and you don't catch the exception inside the DLL, you should have an error logged in event viewer (server or client).

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,140 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,362 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,216

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans