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 :
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,236 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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans