Re: An OLE DB Provider was not specified in the ConnectionString
- From: "Joe Newlin" <joenewlin@xxxxxxxxxxxxx>
- Date: Wed, 20 Jul 2005 19:48:46 +0000
This is my Stack Trace:
[ArgumentException: An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'.]
System.Data.OleDb.OleDbConnectionString.ValidateParse() +767
System.Data.Common.DBConnectionString..ctor(String connectionString, UdlSupport checkForUdl) +144
System.Data.OleDb.OleDbConnectionString.ParseString(String connectionString) +98
System.Data.OleDb.OleDbConnection.set_ConnectionString(String value) +11
System.Data.OleDb.OleDbConnection..ctor(String connectionString) +158
www.joenewlin.com.Guest.GetDataSource(String sql) in \\xxxxweb\joenewlinxxxx\book.vb:75
www.joexxxx.com.book.BindGrid() in \\xxxxxweb\joenewlinxxxx\book.aspx.vb:85
www.joexxxx.com.book.Page_Load(Object sender, EventArgs e) in \\xxxxxweb\joenewlinxxxx\book.aspx.vb:73
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
"Paul Clement" <UseAdddressAtEndofMessage@xxxxxxxxxxxxxx> wrote in message news:t46td1tm7f088mua1u8u2k8rot2u8auib2@xxxxxxx:
On Wed, 20 Jul 2005 15:00:11 +0000, "Joe Newlin" <joenewlin@xxxxxxxxxxxxx> wrote:
¤ I am getting an error: Server Error in '/' Application. An Ole Db ¤ Provider was not specified in the ConnectionString. An example would ¤ be, 'Provider=SQLOLEDB. ¤ My Function is this: Public Function GetDataSource(ByBal sql As String) ¤ As DataView ¤ Dim ds as DataSet ¤ Dim cnn as OleDbConnection ¤ Dim cmd As OleDbDataAdapter ¤ Cnn = New OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0;Data ¤ Source=e:\Book.mdb") ¤ Cnn.Open() ¤ Cmd = New OleDbDataAdapter(sql, cnn) ¤ ¤ I Get this error even if I comment out the entire function.
On which line of code does the exception occur?
Paul ~~~~ Microsoft MVP (Visual Basic)
.
- Follow-Ups:
- References:
- Re: An OLE DB Provider was not specified in the ConnectionString
- From: Paul Clement
- Re: An OLE DB Provider was not specified in the ConnectionString
- Prev by Date: Re: Conceptual delete question
- Next by Date: Re: OracleDataAdapter Update() not working
- Previous by thread: Re: An OLE DB Provider was not specified in the ConnectionString
- Next by thread: Re: An OLE DB Provider was not specified in the ConnectionString
- Index(es):
Relevant Pages
|