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 :
Microsoft Dynamics NAV (Archived)

DotNet replacement in AL

(0) ShareShare
ReportReport
Posted on by 453

Hi all

I am in the middle of converting C/AL to AL. 

I want to know if anyone have a workaround for replacing the DotNet's.

One of the error is this one.

 AuthCookie : DotNet "'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Net.Cookie";

Error: DotNet is not reconized as a valid type. 

How can I rewrite the code to be able to build the app?

*This post is locked for comments

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

    DotNet data type are not supported with AL. You've to rethink to this part of code you want to migrate without using them.

  • Verified answer
    keoma Profile Picture
    32,729 on at

    dotnet datatype was removed from AL vs. 2.0. you can use  web service calls with httpclient instead.

    links for new datatypes in AL, which replace .net datatypes:

    https://docs.microsoft.com/de-de/dynamics-nav/developer/devenv-restapi-overview

    http://vjeko.com/state-net-affairs/

    http://www.kauffmann.nl/2017/06/24/al-support-for-rest-web-services/

    http://vjeko.com/invoking-azure-functions-al/

  • Verified answer
    Natalie Karolak - the BC Docs Librarian Profile Picture
    1,955 on at

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 > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans