I am working to configure NLog on a project and I found a similar issue. I don't know why but when I set builder.Logging.ClearProviders(), the app is unable to launch the browser. When I remove that it is fine. I don't know why this is happening but perhaps it can be helpful.