Webclient new instance errors

rcverbeek
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:
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:
When I use F5 instead, it shows a lot more errors in the event viewe, like:
My launch.json settings are:
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!
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:
- 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.
- I have verified that the object designer and RTC work properly.
- I have enabled all appropriate settings for AL development
- Created a new NaAVWebserverInstance on port 8081 (code see below this list)
- The property PublicWebBaseUrl has a value of: http://ADF-SOFT-01:8081/Greenline_AL/Webclient/
- I have verified that the application has been created in IIS
- On the server, Created a new AL project in VSCode
- 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!
0
Answers
-
I have reinstalled the NAVWebServerInstance with PublishFolder now pointing to an existing folder in wwwroot. This has resolved the issue,0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions