-
Notifications
You must be signed in to change notification settings - Fork 280
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
[Bug]: Reference newer Nuget Microsoft.Extensions.Caching.Memory breaks Tcp-Server #1373
Comments
You're saying when you promoted the version of Microsoft.Extensions.Caching.Memory to 8.0.0 by adding a reference for your own usage, CoreWCF stopped responding to calls? I just tested changing our unit test projects to reference Microsoft.Extensions.Caching.Memory 8.0.0. I had one small compilation problem where ILoggingBuilder has moved packages and promoting this reference caused the type to be seen in two different packages. The solution was to add a package reference to version 8.0.0 of Upgrading those packages caused our .NET Framework tests to fail. This is because on .NET Framework, we reference the nuget package
If the problem isn't due to not using the right Sdk or missing the |
Hi, var binding = new NetTcpBinding("MyBindingConfig");
var baseUri = $"net.tcp://localhost:{22203}/";
var url = baseUri + "dataProvider";
var address = new EndpointAddress(url);
var dataProviderFactory = new ChannelFactory<ICommonDataProvider>(binding, address);
var chan = dataProviderFactory.CreateChannel();
//CallToServer run in timeout
var result = chan.CallToServer("Parameter"); In the provider project a have a reference to Microsoft.Extensions.Caching.Memory 8.0.0: <ItemGroup>
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.10.3" />
</ItemGroup> Change Microsoft.Extensions.Caching.Memory to version 2.1.23, clean and rebuild solution and try again. Now the call is finished succesfully. |
Hi @mconnew , |
Haven't had time yet, feel free to keep bugging me as I want to work out what's going on with this. |
Thank you @mconnew , |
I have experienced the call never completes, it just times out. But it doesn't seem to match up with the other pieces of your scenario. With an operation contract method that is void with no arguments a call will timeout while every other operation on the service contract works fine. And it's only a subset of all the applications that we have using this contract (i.e., some clients work fine with the same host), but doesn't appear to be related to the version of Microsoft.Extensions.Caching.Memory. |
Duplicate ?
Product version
1.5.2
Describe expected behavior
Hi,
my Server-App uses the Microsoft.Extensions.Caching.Memory nuget for caching. Using the newest version should work.
Describe actual behavior
I referenced Microsoft.Extensions.Caching.Memory version 8.0.0. But with this reference a call from a client never completes. I saw that CoreWCF also used this library and i tried to downgrade my version also to version 2.1.23. Then my clients can successfully call my server. I have not tested all versions above, but with 3.1.1 the calls started to fail.
Which binding
NetTcp
security
None
Which .NET version
.NET Framework
Which os platform
Windows
Code snippet used to reproduce the issue
No response
Stacktrace if any
No response
The text was updated successfully, but these errors were encountered: