Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

"Internal server error" when publishing customizations from VSCode (OnPrem) SkipVerification

Posted on by 2,983

Trying to publish some customization directly from VS Code, If i do CTRL + F5 (Publish without debugging), I get this textbook Microsoft error:

    [2020-07-13 14:13:47.22] Error: An internal error has occurred

For manually publishing the app from powershell, I need to add the SkipVerification option:

    Publish-NAVApp -ServerInstance BC160 -Path ".\Default publisher_udlpAL_1.1.0.2.app" -SkipVerification

So I'm thinking, maybe the issue is I need to somehow tell VS Code to add this option while publñishing, but I can't find how. Any ideas?

In server admin, I have Enabled developer endpoint, and Allowed Extension target = OnPrem (Internal throws the same error)

This are some important files I have

launch.json

{
    "version""0.2.0",
    "configurations": [
        {
            "type""al",
            "request""launch",
            "name""Your own server",
            "server""http://localhost:7249",
            "serverInstance""BC160",
            "authentication""UserPassword",
            "startupObjectId"22,
            "startupObjectType""Page",
            "breakOnError"true,
            "launchBrowser"true,
            "enableLongRunningSqlStatements"true,
            "enableSqlInformationDebugger"true,
            "skipve"
        }
    ]
}
app.json
{
  "id""cbdae479-9407-4777-9fc7-cde59fa8d863",
  "name""udlpAL",
  "publisher""Default publisher",
  "version""1.1.0.2",
  "brief""",
  "description""",
  "privacyStatement""",
  "EULA""",
  "help""",
  "url""",
  "logo""",
  "target""OnPrem",
  "dependencies": [
    {
      "id""63ca2fa4-4f03-4f2b-a480-172fef340d3f",
      "publisher""Microsoft",
      "name""System Application",
      "version""16.0.0.0"
    },
    {
      "id""437dbf0e-84ff-417a-965d-ed2bb9650972",
      "publisher""Microsoft",
      "name""Base Application",
      "version""16.0.0.0"
    },
    {
      "id":  "aefe4506-6a2f-4ce4-8ba3-2c87dbc26f53",
      "name":  "Spanish language (Spain)",
      "publisher":  "Microsoft",
      "version":  "16.1.12629.12805"
    }
  ],
  "screenshots": [],
  "platform""16.0.0.0",
  "idRanges": [
    {
      "from"50000,
      "to"59000
    }
  ],
  "showMyCode"true,
  "runtime""5.0"
}
Categories:
  • Suggested answer
    Avinash B Profile Picture
    Avinash B 1,450 on at
    RE: "Internal server error" when publishing customizations from VSCode (OnPrem) SkipVerification

    Hi

    Add the "port" command into your lanch.json file. The port id will be the one that you have entered under the Development tab in Administration.

    This might help you.

    Regards

    Avinash B  

  • Suggested answer
    divyeshchitte Profile Picture
    divyeshchitte 950 on at
    RE: "Internal server error" when publishing customizations from VSCode (OnPrem) SkipVerification

    Kindly compile your extension and go to power shell ise ( run as admin).

    Publish-NAVApp -ServerInstance BC160 -Path ".\Default publisher_udlpAL_1.1.0.2.app" -SkipVerification

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,252 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,089 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans