Webclient new instance errors

rcverbeekrcverbeek Member Posts: 32
Hi,

I am working on a BC2018 CU3 project and got problems opening the web client. This is a non default instance. What I have done so far:
  1. Created a new Cronus database and server instance using the Service Tier Administration (Version v3.4.0.0). The service tier and database are on the same server.
  2. I have verified that the object designer and RTC work properly.
  3. I have enabled all appropriate settings for AL development
  4. Created a new NaAVWebserverInstance on port 8081 (code see below this list)
  5. The property PublicWebBaseUrl has a value of: http://ADF-SOFT-01:8081/Greenline_AL/Webclient/
  6. I have verified that the application has been created in IIS
  7. On the server, Created a new AL project in VSCode
  8. The symbols got downloaded
New-NAVWebServerInstance -WebServerInstance Greenline_AL -Server localhost -ServerInstance Greenline_AL -SiteDeploymentType RootSite -WebSitePort 8081 -PublishFolder "C:\Temp\BC14 CU03\WebClient\Microsoft Dynamics NAV\140\Web Client\WebPublish"


When I hit Ctrl+F5 it starts the web client on http://adf-soft-01:8081/?page=22 and shows a login screen. When I enter my credentials it fails with Something went wrong.
The even viewer shows:
Microsoft.AspNetCore.Server.Kestrel
Connection id "0HM22KF35MLPU", Request id "0HM22KF35MLPU:0000000B": An unhandled exception was thrown by the application.

System.AggregateException: An error occurred while writing to logger(s). ---> System.ComponentModel.Win32Exception: Access is denied
at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)


When I use F5 instead, it shows a lot more errors in the event viewe, like:
Server instance: Greenline_AL
Category: Development
ClientSessionId: 00000000-0000-0000-0000-000000000000
ClientActivityId: af34ee96-f9bd-4c18-8b71-b6e681a165cf
ServerSessionUniqueId: 00000000-0000-0000-0000-000000000000
ServerActivityId: 0d83c3ea-989f-4248-9677-d1ea3620e465
EventTime: 08/17/2020 13:01:18
Message Failed request -- Method:GET; Url:http://localhost:10049/Greenline_AL/dev/signalr/negotiate?clientProtocol=2.1&connectionData=[{"Name":"DebuggerHub"}]; StatusCode:NotFound; ReasonPhrase:Not Found; Token:
ProcessId: 14996
Tag: 00000LY
ThreadId: 45
CounterInformation:



My launch.json settings are:
{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "al",
            "request": "launch",
            "name": "Greenline_AL",
            "server": "http://localhost/",
            "serverInstance": "Greenline_AL",
            "authentication": "Windows",
            "port": 10049,
            "startupObjectId": 22,
            "startupObjectType": "Page",
            "breakOnError": true,
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true
        }
    ]
}

Can anyone point me in the right direction in solving this issue. If you need more info/settings, please let me know.

Thanks very much for taking the time!

Answers

  • rcverbeekrcverbeek Member Posts: 32
    I have reinstalled the NAVWebServerInstance with PublishFolder now pointing to an existing folder in wwwroot. This has resolved the issue,
Sign In or Register to comment.