I am trying to complete Service Factory HOL Lab Exercise 14: Interoperability WCF Client to ASMX Service.
I am having a problem with Step 4, Adding the Service Agent Class.
I believe I have successfully completed all the necessary predecessor steps.
The error I am getting:
Error: Cannot convert method group 'CreateInstance' to non-delegate type 'GlobalBank.Client.CustomerService.CustomerProductsClient'. Did you intend to invoke the method?
File: C:\Projects\WCF RI\WCF RI\Source\Client\PaymentsListControl.cs
Line: 114
Column: 45
Project: GlobalBank.Client
The line in question:
CustomerProductsClient client = ServiceAgent.CreateInstance<CustomerProductsClient>;