The Named argument %1 was not resolved and corresponds to the following expression %2
Both VB6 and VB.Net have support for Named parameters, which allow parameters to be especified by name and in any order, regardless of method signature. In C# versions 1 through 3.5 this feature is not supported. In most cases VBUC can resolve this issue by matching named parameters to method signatures and ensuring parameters are sent in the right overload / order. However, in certain cases where the VBUC cannot resolve references to methods with named parameters then this EWI is emitted.
For C# migrations the VBUC generally creates a series of method overloads that mimic the behavior of named parameters. This is normal behavior as it is the best approximation of optional named parameters in C#. Workarounds for this EWI include reordering parameters and using the Type.Missing reference for optional parameters that should be omitted. In cases where the reference could not be resolved this is particularly important. Since, this EWI is related to the VBUC not being able to find mapped references, ensuring that the machine doing the migration has access to all dependent assemblies and COM objects is essential. Repeating the migration once this has been correct can reduce or eliminate the occurrence of these EWIs
Reference documentation for sample code:
Since this EWI only appears in C#, an example will be shown just for that language.