Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.12 KB

unexpected-invalidcastexception-from-invokemethod-activity-in-wf4.md

File metadata and controls

43 lines (29 loc) · 1.12 KB

Unexpected InvalidCastException from InvokeMethod activity in WF4

Scope

Minor

Version Introduced

4.5

Version Reverted

4.5

Source Analyzer Status

Planned

Change Description

Using a xref:System.Activities.Statements.InvokeMethod that targets a method with a nullable parameter can throw an xref:System.InvalidCastException?displayProperty=name.

  • Quirked
  • Build-time break

Recommended Action

This behavior was reverted in a .NET Framework 4.5 servicing release. Update the .NET Framework 4.5 (or upgrade to .NET Framework 4.5.1 or later) to fix the issue.

Affected APIs

  • P:System.Activities.Statements.InvokeMethod.Parameters

Category

Windows Workflow Foundation (WF)

More information