Skip to content

Exception thrown from Opening event handler causes hung state #3019

Open
@IGx89

Description

@IGx89

If an exception is thrown from the ICommunicationObject.Faulted event handler, execution becomes hung. It works fine on the old .NET Framework WCF.

Steps to Reproduce

  1. Create a WCF client (I used dotnet-svcutil on a SOAP service)
  2. Instantiate the client
  3. Call client.Opening += (sender, args) => throw new Exception("Triggering Faulted state")
  4. Execute a method on the client

Expected Result

  • An exception is thrown and client.State becomes CommunicationState.Faulted

Actual Result

  • Execution hangs

Metadata

Metadata

Assignees

Labels

BacklogLegitimate tasks of lower priority not in current dev schedule.bugThis is a product bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions