Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

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

Posted on by 65
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?
Categories:
  • CU07050920-0 Profile Picture
    CU07050920-0 10 on at
    Hi ,,,,When Run Code ......... gives me Error (dotnet Call DLL)
    After many try it started giving me this error
  • Rami Mazrawi Profile Picture
    Rami Mazrawi 65 on at
    Hi ,,,,When Run Code ......... gives me Error (dotnet Call DLL)
    Thank you very much  gdrenteria
     
    The problem still exists
     
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 12,065 Most Valuable Professional on at
    Hi ,,,,When Run Code ......... gives me Error (dotnet Call DLL)

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templates⚡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans