Cant start dashboard from Visual Code =====> PowerShell Integrated Console <=====

Hi there,

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)

I can start it from a regular powershell console

Any idea’s?

I have the same problem.

This sounds like we have some conflicting assemblies loaded into the PowerShell Integrated Console. Could you please open a GitHub issue for this?

I’m seeing the same starting today, I can’t run my dashboard at all.

Rolling back the PowerShell extension in VS Code to 2020.1.0 resolved the issue. It seems 2020.3.0 has a problem.


Yes, rolling back to 2020.1.0 for the PowerShell extension worked for me.

1 Like

This worked for me too. Thanks.

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