Open Forum

Expand all | Collapse all

Launch.JSON settings for OnPrem (v13.9)

  • 1.  Launch.JSON settings for OnPrem (v13.9)

    GOLD CONTRIBUTOR
    Posted Oct 03, 2019 01:50 PM
    Hi All

    Learning extensions V2 and successfully deployed to cloud sandbox; however, we have an OnPrem install and I can't download symbols.

    I've tried two options and get the errors shown

    {
    "version": "0.2.0",
    "configurations": [

    {
    "type": "al",
    "request": "launch",
    "name": "company",
    "server": "http://company-dynamics:8080",
    "serverInstance": "companycrp",
    "port": 13059,
    "authentication":"Windows",
    "startupObjectId": 22,
    "startupObjectType": "Page",
    "breakOnError": true,
    "launchBrowser": true,
    "enableLongRunningSqlStatements": true,
    "enableSqlInformationDebugger": true
    }
    ]
    }

    [2019-10-03 12:38:26.81] Using reference symbols cache path: d:\Documents\AL\ReportTest\./.alpackages
    [2019-10-03 12:38:26.84] Targeting server 'http://company-dynamics:8080' and server instance 'companycrp'.
    [2019-10-03 12:38:26.85] Using Windows authentication.
    [2019-10-03 12:38:26.87] Sending request to http://company-dynamics:13059/companycrp/dev/packages?publisher=Microsoft&appName=Application&versionText=13.0.0.0
    [2019-10-03 12:38:26.92] Sending request to http://company-dynamics:13059/companycrp/dev/packages?publisher=Microsoft&appName=System&versionText=13.0.0.0
    [2019-10-03 12:38:27.03] Error: An error occurred while sending the request.
    The remote server returned an error: (401) Unauthorized.
    The target principal name is incorrect



    {
    "version": "0.2.0",
    "configurations": [

    {
    "type": "al",
    "request": "launch",
    "name": "Clesen",
    "server": "http://Clesen-dynamics:13059",
    "serverInstance": "clesencrp",
    "authentication":"Windows",
    "startupObjectId": 22,
    "startupObjectType": "Page",
    "breakOnError": true,
    "launchBrowser": true,
    "enableLongRunningSqlStatements": true,
    "enableSqlInformationDebugger": true
    }
    ]
    }


    [2019-10-03 12:39:33.68] Using reference symbols cache path: d:\Documents\AL\ReportTest\./.alpackages
    [2019-10-03 12:39:33.69] Targeting server 'http://company-dynamics:13059' and server instance 'companycrp'.
    [2019-10-03 12:39:33.69] Using Windows authentication.
    [2019-10-03 12:39:33.69] Sending request to http://company-dynamics:13059/companycrp/dev/packages?publisher=Microsoft&appName=Application&versionText=13.0.0.0
    [2019-10-03 12:39:33.69] Sending request to http://company-dynamics:13059/companycrp/dev/packages?publisher=Microsoft&appName=System&versionText=13.0.0.0
    [2019-10-03 12:39:33.71] Error: An error occurred while sending the request.
    The remote server returned an error: (401) Unauthorized.
    The target principal name is incorrect

    [2019-10-03 12:39:36.71] Error: An error occurred while sending the request.
    The remote server returned an error: (401) Unauthorized.
    The target principal name is incorrect



    In Development section in Admin console I have the following set

    Allowed Extension Target Level: Internal
    Enable Developer Service endpoint: checked
    Enable loading application symbol refs at service start: checked
    HttpClient AL Function Max timeout: 00:05:00
    HttpClient AL Function Response size: 150
    Port: 13059


    I'm running VSCode on my local machine and pointing at the dynamics server

    Client services: 13056
    SOAP services: 13057
    OData Services: 13058
    Mgmt Services: 13055
    Development: 13059

    Web URL is
    http://company-dynamics:8080/companycrp



    Thanks in advance

    Mark



    ------------------------------
    Mark Anderson
    Director of ERP Systems
    Clesen Wholesale
    Evanston, IL
    ------------------------------
    Conference-BCNAVUG_200x200


  • 2.  RE: Launch.JSON settings for OnPrem (v13.9)

    GOLD CONTRIBUTOR
    Posted Oct 04, 2019 07:35 AM
    You have conflicting port settings:

    "server": "http://company-dynamics:8080",
    "port": 13059,

    First you tell it port 8080, which is the web client port. And then you specify 13059, which is your development port.

    Remove the 8080. It should look like this:

    "server": "http://company-dynamics",
    "serverInstance": "companycrp",
    "port": 13059,

    ------------------------------
    Kyle Hardin
    NAV Developer
    ArcherPoint Inc.
    Duluth GA
    ------------------------------

    Conference-BCNAVUG_200x200


  • 3.  RE: Launch.JSON settings for OnPrem (v13.9)

    GOLD CONTRIBUTOR
    Posted Oct 07, 2019 09:24 AM
    Thanks Kyle

    Still no luck. I'm setting the port to the one listed in the Development settings

    Getting: 
    The remote server returned an error: (401) Unauthorized.
    The target principal name is incorrect


    ------------------------------
    Mark Anderson
    Director of ERP Systems
    Clesen Wholesale
    Evanston, IL
    ------------------------------

    Conference-BCNAVUG_200x200


  • 4.  RE: Launch.JSON settings for OnPrem (v13.9)

    GOLD CONTRIBUTOR
    Posted Oct 07, 2019 09:28 AM
    Got it working

    I had to set authorization to "AAD"

    FYI: We use Office365 and have out local AD sync'd with Azure

    ------------------------------
    Mark Anderson
    Director of ERP Systems
    Clesen Wholesale
    Evanston, IL
    ------------------------------

    Conference-BCNAVUG_200x200


If you've found this thread useful, dive deeper into User Group community content by role