web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / My NAV Notes / DotNet ‘HttpUtility’ is mis...

DotNet ‘HttpUtility’ is missing (AL0185)

Community Member Profile Picture Community Member

If you still use dotnet for legacy reasons for example in Business Central. You could encounter this issue in VS Code when building your app:

DotNet ‘HttpUtility’ is missing

This class is part of the System.Web namespace and is used to encoding or decode URL’s. In order to fix this in AL you need to do the following steps:

  • Setup and configure Assembly Probing Paths in VS Code Workspace Settings
  • Create a dotnet.al file in your AL Project. This file should now hold the following Json structure and contents:
dotnet
 {
     assembly("System.Web")
     {
         Version = '4.0.0.0';
         Culture = 'neutral';
         PublicKeyToken = 'b03f5f7f11d50a3a';
         type("System.Web.HttpUtility"; "HttpUtility")
         { } 
     } 
 }

It took me some time to sort this out and by sharing this post this will save you some time if you encounter an issue similar.


This was originally posted here.

Comments

*This post is locked for comments