Connect Business Central On Premises from VS Code

manikandanmanikandan Member Posts: 160
edited 2018-10-15 in NAV Three Tier
Hi All,
When I am trying to connect Business Central On Premises from AL getting below error message ,
Note:
But I can able connect to NAV 2018 from AL and can do customization also with out any issue
Please help .


0p4vi3623gmd.png

Best Answers

  • manikandanmanikandan Member Posts: 160
    Answer ✓
    Hi AJ,
    Issue has been closed. I just closed and reopened my AL and now I Can able to publish to the server.Thanks for your support :)

Answers

  • kauffmannkauffmann Member Posts: 56
    I think you are not using the latest AL extension for VS Code.
    Download it from VS Code marketplace and then add this property to your app.json:

    "runtime": "2.0"

    After you have downloaded the latest AL extension for VS Code, your AL apps for NAV 2018 should get this line in app.json:
    "runtime": "1.0"

    A good programmer makes al the right mistakes
    My blog
  • manikandanmanikandan Member Posts: 160
    Hi AJ,
    Can you please confirm is this correct ?

    gdqmwzgrb4of.png
  • manikandanmanikandan Member Posts: 160
    Hi Aj ,

    Thanks for your reply now I have updated my AL code .
    Now I am getting below error message ,

    tmoqjds67hzq.png

    But I have already set it in NAV Admin as below
    bv5b6hsj28mv.png

    and I made NetFx40_LegacySecurityPolicy enabled="false also from below folder
    C:\Program Files\Microsoft Dynamics 365 Business Central\130\Service

    Is any thing missing Can you please guide me !

  • manikandanmanikandan Member Posts: 160
    Answer ✓
    Hi AJ,
    Issue has been closed. I just closed and reopened my AL and now I Can able to publish to the server.Thanks for your support :)
Sign In or Register to comment.