I cant seem to start a dashboard form visual code.
I get the error:
Application startup exception: System.MissingMethodException: Method not found: ‘Microsoft.Extensions.Logging.ILoggerFactory NLog.Extensions.Logging.ConfigureExtensions.AddNLog(Microsoft.Extensions.Logging.ILoggerFactory)’.
at UniversalDashboard.ServerStartup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IApplicationLifetime lifetime)
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
I am using the preview powershell extentions (beacuse is has psreadline support)
Same issue, same fix. Dash is working launched from Visual Studio Code with PowerShell Extension 2020.1.0 but Microsoft.Extensions.Logging.ILoggerFactory error with version 2020.3.0
I am using Powershell 7 and 7.1 Preview 1 in vscode and UniversalDashboard 2.9.0 (Not the community version) without any problems.
What Powershell version and UniversalDashboard Edition are you using?
I know this is a dated post, however I had the same issue. I solved it by opening a new powershell terminal within VSCode and using that one, it allowed the dashboard to work without having to roll anything back.