Skip to main content

Notifications

Announcements

No record found.

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 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"
}
  • Suggested answer
    Avinash B Profile Picture
    Avinash B 1,455 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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans