Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

DotNet replacement in AL

Posted on by 445

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

  • Verified answer
  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: DotNet replacement in AL

    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/

  • Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: DotNet replacement in AL

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

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans