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

Hi ,,,,When Run Code ......... gives me Error (dotnet Call DLL)

(0) ShareShare
ReportReport
Posted on by 4
Hi ,,,,When Run Code ......... gives me Error (dotnet Call DLL)

When writing the code, it does not tell me that there is an error in the code, but it gives me an error during Run.

* Idea: I have a DLL file that I want to call the classes, methods, and functions it contains.

DLL Name : IntegrationInvoiceJOD.DLL
Class Name : GeneralReturnInvoice( )
Function Name : JustTest()
Code C# inside DLL :
Public Function JustTest() As String
        Return /Welcom /
End Function


*Note: The DLL file has been placed in the required path.
===================================================================================

dotnet
{
    assembly(IntegrationInvoiceJOD)
    {
        type(IntegrationInvoiceJOD.GeneralReturnInvoice; VAR_Test) { }

    }
}
pageextension 50100 /Sales Order Ext/ extends /Sales Order/
{
    trigger OnOpenPage();
    var
        justTestInstance: DotNet VAR_Test;
    begin
        justTestInstance := justTestInstance.GeneralReturnInvoice();
        Message('Hello, world! It is: %1', justTestInstance.ToString());
    end;
}

Compilation ended at '10:05:55.978'.
Success: The package is created.

===================================================================================
error when : Ctrl + Shift +F5 



launch.json



Please help me solve this problem?
I have the same question (0)
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,547 Most Valuable Professional on at
  • Rami Mazrawi Profile Picture
    4 on at
    Thank you very much  gdrenteria
     
    The problem still exists
     
  • CU07050920-0 Profile Picture
    on at
    After many try it started giving me this error

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,965 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,125 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 961 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans