Description
Please clearly describe what the SQL Sink is doing incorrectly:
After updating Serilog.Sink.MSSqlServer 6.6.0 to 7.0.0 ASP.NET MVC application crashs with 0x80131045 error code.
Please clearly describe the expected behavior:
Not getting error.
List the names and versions of all Serilog packages used in the project:
- Serilog: Serilog 4.0.0
- Serilog.Sinks.MSSqlServer: 7.0.0
Target framework and operating system:
.NET Framework 4.8
OS: Windows 10
Provide a simple reproduction of your Serilog configuration code:
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Information()
.WriteTo.MSSqlServer(ConfigurationManager.ConnectionStrings["logConn"].ConnectionString,
sinkOptions: new Serilog.Sinks.MSSqlServer.MSSqlServerSinkOptions { TableName = "Logs", AutoCreateSqlTable = true, AutoCreateSqlDatabase = true })
.CreateLogger();
Provide a simple reproduction of your application code: