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
I'm upgrading an app from .NET 5 to 6. Our SQL servers supports Kerberos. In Windows and macOS the .NET 6 upgraded app works fine, but in Linux Ubuntu 20.04 the dotnet watch run shows: watch : Exited with error code 139 when the app tries to execute a query against the SQL server.
The connection string I am using is this:
"Server=our-sql-server.com;Database=our-db;MultipleActiveResultSets=True;Max Pool Size=300;Trusted_Connection=True;"
Configuration
Which version of .NET is the code running on? 6.0.102
What OS and version, and for Linux, what distro? Linux Ubuntu 20.04
What is the architecture (x64, x86, ARM, ARM64)? x64
Do you know whether it is specific to that configuration? I tried on a Mac Mini w/ M1 and Dell w/ i7 and works fine
Regression?
Did this work in a previous build or release of .NET, or from .NET Framework? I tried it with .NET 5.0.405 and works fine everywhere.
Other information
About the stack trace, there is none. When run with debug it simply dies with no message. When run with dotnet run it just quits with no error. When run with dotnet watch run it shows: watch : Exited with error code 139.
I do not have any works around. I've been trying different connections strings options, but no luck!
With this simple app throws the error:
using Microsoft.EntityFrameworkCore;
var contextOptions = new DbContextOptionsBuilder<AppDbContext>()
.UseSqlServer(@"Server=our-sql-server.com;Database=our-db;MultipleActiveResultSets=True;Max Pool Size=300;Trusted_Connection=True;")
.Options;
await using var context = new AppDbContext(contextOptions);
var response = await context.Database.ExecuteSqlRawAsync("SELECT * FROM AnyTable"); // <-- this makes the app crash with no message
Console.WriteLine(response);
internal class AppDbContext : DbContext
{
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
{
}
}
The text was updated successfully, but these errors were encountered:
Description
I'm upgrading an app from .NET 5 to 6. Our SQL servers supports Kerberos. In Windows and macOS the .NET 6 upgraded app works fine, but in Linux Ubuntu 20.04 the
dotnet watch run
shows:watch : Exited with error code 139
when the app tries to execute a query against the SQL server.The connection string I am using is this:
"Server=our-sql-server.com;Database=our-db;MultipleActiveResultSets=True;Max Pool Size=300;Trusted_Connection=True;"
Configuration
Regression?
Other information
About the stack trace, there is none. When run with debug it simply dies with no message. When run with
dotnet run
it just quits with no error. When run withdotnet watch run
it shows:watch : Exited with error code 139
.I do not have any works around. I've been trying different connections strings options, but no luck!
With this simple app throws the error:
The text was updated successfully, but these errors were encountered: