[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1174
  • Last Modified:

Overload resolution failed because no accessible 'New' accepts this number of arguments.

Try
            oraConn.Open()
            myADP.TableMappings.Add("Table", "Dual")
            oraCmd.CommandType = CommandType.Text
            myADP.SelectCommand = oraCmd
            myDS = New DataSet("Dual")          /* The error is here
     
            myADP.Fill(myDS)
            If myDS.Tables("Dual").Rows.Count > 0 Then
sql=""
0
yuvaratna
Asked:
yuvaratna
1 Solution
 
Bob LearnedCommented:
I would assume that DataSet is defined as System.Data.DataSet, but I really shouldn't!!
0
 
CodeCruiserCommented:
Try by moving this line
myADP.TableMappings.Add("Table", "Dual")
to after the dataset creation.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now