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...
Answered

DotNet WebServiceActionContext

(0) ShareShare
ReportReport
Posted on by 37
Hi,
I want to call the OData Action Management as is done in the procedure SetActionResponse of the page 5475 "Sales Invoice Entity".
 
local procedure SetActionResponse(var ActionContext: DotNet WebServiceActionContext; InvoiceId: Guid)
    var
        ODataActionManagement: Codeunit "OData Action Management";
    begin
        ODataActionManagement.AddKey(FieldNo(Id), InvoiceId);
        ODataActionManagement.SetDeleteResponseLocation(ActionContext, PAGE::"Sales Invoice Entity");
    end;
The error I get is: .NET Type "Microsoft.Dynamics.Nav.Runtime.WebServiceActionContext" as WebServiceActionContext
DotNet 'WebServiceActionContext' is missingAL(AL0185)
The target is set to OnPrem and also the al.assemblyProbingPaths is set.
  "al.assemblyProbingPaths": [
        "./.netpackages",
        "c:/windows/assembly"
    ],
Where can I find the Microsoft.Dynamics.Nav.Runtime DLL?
I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

  • Verified answer
    DSS servicedesk Profile Picture
    37 on at

    I found the answer myself.

    The Microsoft.Dynamics.Nav.Runtime.WebServiceActionContext is located in Microsoft.Dynamics.Nav.Ncl.dll. This dll is located in the server directory (C:\Program Files\Microsoft Dynamics 365 Business Central\170\Service).

    Copy this dll to a directory in your project (for example .netpackages) and set this directory in the settings.json as al.assemblyProbingPaths.

    "al.assemblyProbingPaths": [

           ".netpackages",

           "c:/windows/assembly"

       ],

  • John_Maina Profile Picture
    10 on at

    Hello,

    I am trying to add a Bound Action to Page 5495 Sales Order Entity on BC V13 onprem using CAL and the assembly Microsoft.Dynamics.Nav.Runtime.WebServiceActionContext" is missing how can I add it?

    Regards,
    John.2402.Picture1.png

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,003 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,225 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,192

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans