cs1501 error

Bob Alston 121 Reputation points
2023-03-28T01:26:59.9733333+00:00

I get cs1501 error - No overload for method 'download' takes 7 arguments.

Running this code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Services.Description;

namespace ConsoleApp7
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var service = new us.tx.state.dshs.cmbhs.DataDownloadService { Url = "http:s://cmbhs.dshs.state.tx.us/cmbhswebservice/Service/DataDownloadService.asmx?wsdl" };
            var mydata = service.Download("xxIDxxx", "yyPWyyy", "449737", "2022-10-01", "2022-10-03","12","02");
            Console.WriteLine(mydata);

Error on  line "var mydata = ..."

I read internet posts which don't really tell me how to fix this.
Thanks for assistance
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,818 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.