You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I've created a webserver using EmbedIO. That webserver is to be started by another application without the user seeing that it is running. So no console window should be present. I'm starting the application using this process definition:
When the webserver application is started, the application fails. In the EventViewer we see this:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException
at System.IO.__Error.WinIOError(Int32, System.String)
at System.Console.set_CursorVisible(Boolean)
at Swan.Terminal..cctor()
Exception Info: System.TypeInitializationException
at Swan.Terminal.get_IsConsolePresent()
at Swan.Logging.Logger..cctor()
Exception Info: System.TypeInitializationException
at Swan.Logging.Logger.Info(System.String, System.String, System.Object, System.String, System.String, Int32)
at EmbedIO.WebServer.CreateHttpListener()
at EmbedIO.WebServer..ctor(System.Action`1<EmbedIO.WebServerOptions>)
at Luxexcel.LensRecognition.Server.Program.CreateWebServer(System.String)
at Luxexcel.LensRecognition.Server.Program.RunWebserver(Luxexcel.LensDiscovery.Shared.CommandLineOptions)
at CommandLine.ParserResultExtensions.WithParsed[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](CommandLine.ParserResult`1<System.__Canon>, System.Action`1<System.__Canon>)
at Luxexcel.LensRecognition.Server.Program.Main(System.String[])
It fails in Logger's class constructor on IsConsolePresent.
I'm using Swan 3.1.0
Expected behavior
It should not throw an exception and not try to add the terminal as a sink when it isn't there.
Desktop (please complete the following information):
OS: Windows 10
.NET Framework 4.8
The text was updated successfully, but these errors were encountered:
Describe the bug
I've created a webserver using EmbedIO. That webserver is to be started by another application without the user seeing that it is running. So no console window should be present. I'm starting the application using this process definition:
When the webserver application is started, the application fails. In the EventViewer we see this:
It fails in Logger's class constructor on IsConsolePresent.
I'm using Swan 3.1.0
Expected behavior
It should not throw an exception and not try to add the terminal as a sink when it isn't there.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: