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

WCF Client (.net8.0 Win form Exe) Call will Hung if Sync Method is Invoked before Invoking any Async Method #5730

Open
Samba143 opened this issue Jan 20, 2025 · 0 comments

Comments

@Samba143
Copy link

Samba143 commented Jan 20, 2025

Repro:

  1. Create WCF service with NetTCP binding with runtime as .Net framework 4.8
  2. Create WCF client (Win forms exe) using WCF client packages 8.1 and runtime as .Net 8.0

Image

Expected Results:
Both operations should return irrespective of the sequence of requests

Actual Results:
Scenario 1: If Sync call (button2_Click) is Invoked first, call never returns
Scenario 2: If Async call (button1_Click) is Invoked first and then Sync call (button_Click) is invoked, results are as expected
Scenario 3: Sync calls works fine provided async call was invoked at least once

No issue if client is running on .Net framework.
No issue if client is a console application on .Net 8.0

@mconnew , How to justify the above behavior with WCF client packages on .Net 8.0 ?
Your clarifications will help me to assess the feasibility of WCF client codebase migration to .Net 8.0

@Samba143 Samba143 changed the title WCF Client (.net8.0 Win form Exe) Call will Hung if Sync Method is Invoked WCF Client (.net8.0 Win form Exe) Call will Hung if Sync Method is Invoked before Invoking any Async Method Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant