CoreWCF / CoreWCF/CoreWCF

[Bug]: Application freeze with combination .Net framework and Microsoft.AspNetCore.Connections.Abstractions

Open
#1,681 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
1.8k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

### Duplicate ?

- [x] I have searched issues/discussions and did not find other issues/discussions reporting this bug.

### Product version

1.8.0

### Describe expected behavior

I have an application in .Net Framework 4.8 when I upgrade the version of Microsoft.AspNetCore.Connections.Abstractions greater than 3.1.32 the aplication freeze and stop working.

### Describe actual behavior

The application freezes when using greater than 3.1.32 of Microsoft.AspNetCore.Connections.Abstractions

### Which binding

NetTcp

### security

None

### Which .NET version

.NET Framework

### Which os platform

Windows

### Code snippet used to reproduce the issue

```c#
Program.cs

`internal class Program
{
static void Main(string[] args)
{
var builder = Microsoft.AspNetCore.WebHost.CreateDefaultBuilder();

builder
.ConfigureServices(services =>
{
services.AddServiceModelServices();
services.AddServiceModelMetadata();
services.AddSingleton();
})
.Configure(app =>
{
app.UseServiceModel(serviceBuilder =>
{
serviceBuilder.AddService(serviceOptions =>
{
serviceOptions.DebugBehavior.IncludeExceptionDetailInFaults = true;
});
serviceBuilder.AddServiceEndpoint(
new NetTcpBinding(), "/Service.svc");

var serviceMetadataBehavior = app.ApplicationServices.GetRequiredService();
serviceMetadataBehavior.HttpGetEnabled = true;
serviceMetadataBehavior.HttpGetUrl = new Uri("http://localhost:8809/Service");
});
})
.UseKestrel(options =>
{
options.Listen(IPAddress.Loopback, 8809);
})
.UseNetTcp((NetTcpOptions options) =>
{
options.Listen("net.tcp://localhost:8808", (TcpListenOptions listenOptions) =>
{
listenOptions.ConnectionPoolSettings.ChannelInitializationTimeout =
TimeSpan.FromSeconds(5);
});
});

builder.Build().Run();
}
}`

`[ServiceContract]
public interface IService
{
[OperationContract]
string GetVersion();
}
[ServiceBehavior]
internal class Service : IService
{
public string GetVersion()
{
return "1.0.0";
}
}
`
```

### Stacktrace if any

```shell

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.