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

Posted on 2009-02-17
Last Modified: 2013-11-26
            myADP.TableMappings.Add("Table", "Dual")
            oraCmd.CommandType = CommandType.Text
            myADP.SelectCommand = oraCmd
            myDS = New DataSet("Dual")          /* The error is here
            If myDS.Tables("Dual").Rows.Count > 0 Then
Question by:yuvaratna
    LVL 96

    Expert Comment

    by:Bob Learned
    I would assume that DataSet is defined as System.Data.DataSet, but I really shouldn't!!
    LVL 83

    Accepted Solution

    Try by moving this line
    myADP.TableMappings.Add("Table", "Dual")
    to after the dataset creation.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now