Skip to main content

Notifications

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

  • Verified answer
    Natalie Karolak - the BC Docs Librarian Profile Picture
    1,955 on at
  • Verified answer
    keoma Profile Picture
    32,727 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
    37,166 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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans