Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.3.0 doesn't launch #49

Closed
tetsuo13 opened this issue May 24, 2023 · 1 comment · Fixed by #50
Closed

Version 1.3.0 doesn't launch #49

tetsuo13 opened this issue May 24, 2023 · 1 comment · Fixed by #50
Labels
bug Something isn't working

Comments

@tetsuo13
Copy link
Owner

tetsuo13 commented May 24, 2023

Nothing in the log. No message boxes. Nothing happens. Event Viewer logs the following:

Exception Info: System.InvalidOperationException: No Serilog:Using configuration section is defined and no Serilog assemblies were found.
This is most likely because the application is published as single-file.
Either add a Serilog:Using section or explicitly specify assemblies that contains sinks and other types through the reader options. For example:
var options = new ConfigurationReaderOptions(typeof(ConsoleLoggerConfigurationExtensions).Assembly, typeof(SerilogExpression).Assembly);
new LoggerConfiguration().ReadFrom.Configuration(configuration, options);
at Serilog.Settings.Configuration.ConfigurationReader.LoadConfigurationAssemblies(IConfiguration section, AssemblyFinder assemblyFinder)
at Serilog.Settings.Configuration.ConfigurationReader..ctor(IConfiguration configSection, AssemblyFinder assemblyFinder, ConfigurationReaderOptions readerOptions, IConfiguration configuration)
at Serilog.ConfigurationLoggerConfigurationExtensions.GetConfigurationReader(IConfiguration configuration, ConfigurationReaderOptions readerOptions, DependencyContext dependencyContext)
at Serilog.ConfigurationLoggerConfigurationExtensions.Configuration(LoggerSettingsConfiguration settingConfiguration, IConfiguration configuration, ConfigurationReaderOptions readerOptions)
at TeamsStatusPub.Configuration.LoggingConfiguration.CreateDefaultLogger()
at TeamsStatusPub.Program.Main()

@tetsuo13 tetsuo13 added the bug Something isn't working label May 24, 2023
@tetsuo13
Copy link
Owner Author

Introduced in #45 because of serilog/serilog-settings-configuration#353 and was waiting to surface as soon as the application was published as a single file.

@tetsuo13 tetsuo13 linked a pull request May 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant