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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

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

(0) ShareShare
ReportReport
Posted on by 3,029

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"
}
I have the same question (0)
  • Suggested answer
    divyeshchitte Profile Picture
    970 on at

    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

  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    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  

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 521 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 306 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans