"MDAC required" but it's installed... | | |
Hi,
I'm having this error in a VB.NET-application at the moment that I attempt
to read data from an SQL Server:
The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data
Access Components(MDAC) version 2.6 or later. at
System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction)
at
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
Failed to Load Call Data Call Data Failure
However the MDAC 2.7 is installed! And when I look into the registry it is
indicated as installed too:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
"2.71.9040.2"
The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a) pc.
Does anybody know about thisp roblem? And some solution? Could it be because
of some restictions (although I do have full Admin rights on the pc).
I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
hehe).
Thanks a lot in advance, any help, hints etc will be really appreciated!
Pieter | | | | re: "MDAC required" but it's installed...
Hi,
Maybe this will help. You might have to install the latest sql
server service pack. http://support.microsoft.com/default...59&Product=sql
Ken
--------------------
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=blue]
> Hi,
>
> I'm having this error in a VB.NET-application at the moment that I attempt
> to read data from an SQL Server:
>
>
> The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data
> Access Components(MDAC) version 2.6 or later. at
> System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> isInTransaction)
> at
> System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
> Failed to Load Call Data Call Data Failure
>
>
> However the MDAC 2.7 is installed! And when I look into the registry it is
> indicated as installed too:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> "2.71.9040.2"
>
> The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)
> pc.
>
> Does anybody know about thisp roblem? And some solution? Could it be
> because
> of some restictions (although I do have full Admin rights on the pc).
>
> I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> hehe).
>
> Thanks a lot in advance, any help, hints etc will be really appreciated!
>
> Pieter
>
>[/color] | | | | re: "MDAC required" but it's installed...
DraguVaso wrote:
[color=blue]
> I'm having this error in a VB.NET-application at the moment that I attempt
> to read data from an SQL Server:[color=green]
> >[/color]
> The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data
> Access Components(MDAC) version 2.6 or later. at
> System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction)
> at
> System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
> Failed to Load Call Data Call Data Failure
>
>
> However the MDAC 2.7 is installed! And when I look into the registry it is
> indicated as installed too:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> "2.71.9040.2"
>
> The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a) pc.
>
> Does anybody know about thisp roblem? And some solution? Could it be because
> of some restictions (although I do have full Admin rights on the pc).
>
> I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> hehe).
>
> Thanks a lot in advance, any help, hints etc will be really appreciated![/color]
Hi DraguVaso,
seems you're not alone: http://groups.google.de/groups?selm=...TNGP10.phx.gbl http://groups.google.de/groups?selm=...40TKMSFTNGXA14
The MDAC Utility: Component Checker might help http://www.microsoft.com/downloads/d...displaylang=en
Cheers
Arne Janning | | | | re: "MDAC required" but it's installed...
Hi,
Does it help if you reinstall mdac?
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com www.rthand.com
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=blue]
> Hi,
>
> I'm having this error in a VB.NET-application at the moment that I attempt
> to read data from an SQL Server:
>
>
> The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data
> Access Components(MDAC) version 2.6 or later. at
> System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
isInTransaction)[color=blue]
> at
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue]
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
> Failed to Load Call Data Call Data Failure
>
>
> However the MDAC 2.7 is installed! And when I look into the registry it is
> indicated as installed too:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> "2.71.9040.2"
>
> The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)[/color]
pc.[color=blue]
>
> Does anybody know about thisp roblem? And some solution? Could it be[/color]
because[color=blue]
> of some restictions (although I do have full Admin rights on the pc).
>
> I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> hehe).
>
> Thanks a lot in advance, any help, hints etc will be really appreciated!
>
> Pieter
>
>[/color] | | | | re: "MDAC required" but it's installed...
I reinstalled it but it doesn't work...
"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:%23goAAB8REHA.3596@tk2msftngp13.phx.gbl...[color=blue]
> Hi,
>
> Does it help if you reinstall mdac?
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & development
> miha at rthand com
> www.rthand.com
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=green]
> > Hi,
> >
> > I'm having this error in a VB.NET-application at the moment that I[/color][/color]
attempt[color=blue][color=green]
> > to read data from an SQL Server:
> >
> >
> > The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft[/color][/color]
Data[color=blue][color=green]
> > Access Components(MDAC) version 2.6 or later. at
> > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
> isInTransaction)[color=green]
> > at
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green]
> > tionString options, Boolean& isInTransaction)
> > at System.Data.SqlClient.SqlConnection.Open()
> > Failed to Load Call Data Call Data Failure
> >
> >
> > However the MDAC 2.7 is installed! And when I look into the registry it[/color][/color]
is[color=blue][color=green]
> > indicated as installed too:
> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> > "2.71.9040.2"
> >
> > The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)[/color]
> pc.[color=green]
> >
> > Does anybody know about thisp roblem? And some solution? Could it be[/color]
> because[color=green]
> > of some restictions (although I do have full Admin rights on the pc).
> >
> > I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> > hehe).
> >
> > Thanks a lot in advance, any help, hints etc will be really appreciated!
> >
> > Pieter
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
Hi Pieter,
And the message from Ken, I was not looking for you because I thought that
was it?
Cor | | | | re: "MDAC required" but it's installed...
It doesn't have much to do with that:
- VS.NET is not installed, so reisntalling won't do much :-)
- I use the framwork 1.1 an VS.NET 2003, not 1.0 and 2002 (for which the
article is made)
"Ken Tucker [MVP]" <vb2ae@bellsouth.net> wrote in message
news:u69kAN7REHA.3528@TK2MSFTNGP09.phx.gbl...[color=blue]
> Hi,
>
> Maybe this will help. You might have to install the latest sql
> server service pack.
> http://support.microsoft.com/default...59&Product=sql
>
> Ken
> --------------------
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=green]
> > Hi,
> >
> > I'm having this error in a VB.NET-application at the moment that I[/color][/color]
attempt[color=blue][color=green]
> > to read data from an SQL Server:
> >
> >
> > The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft[/color][/color]
Data[color=blue][color=green]
> > Access Components(MDAC) version 2.6 or later. at
> > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> > isInTransaction)
> > at
> >[/color][/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green]
> > tionString options, Boolean& isInTransaction)
> > at System.Data.SqlClient.SqlConnection.Open()
> > Failed to Load Call Data Call Data Failure
> >
> >
> > However the MDAC 2.7 is installed! And when I look into the registry it[/color][/color]
is[color=blue][color=green]
> > indicated as installed too:
> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> > "2.71.9040.2"
> >
> > The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)
> > pc.
> >
> > Does anybody know about thisp roblem? And some solution? Could it be
> > because
> > of some restictions (although I do have full Admin rights on the pc).
> >
> > I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> > hehe).
> >
> > Thanks a lot in advance, any help, hints etc will be really appreciated!
> >
> > Pieter
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
See thread: it doesn't have much to do with that. I'm gonna try to look with
the Component Checker, and do some trial and error :-)
Maybe MDAC 2.8 will help. And would Jet have something to do with it?
"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:%236Q0Ib8REHA.3628@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi Pieter,
>
> And the message from Ken, I was not looking for you because I thought that
> was it?
>
> Cor
>
>[/color] | | | | re: "MDAC required" but it's installed... | | | | re: "MDAC required" but it's installed...
"DraguVaso" <pietercoucke@hotmail.com> schrieb[color=blue]
>
> I'm having this error in a VB.NET-application at the moment that I
> attempt to read data from an SQL Server:[/color]
Please post only to the appropriate groups. I don't see that the question is
specific to the VB.net language.
--
Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html | | | | re: "MDAC required" but it's installed...
Ok: some 'funny' results:
I installed JET 4.0 SP7: It worked once (ONCE!!), and afterwarths I got the
same error... :-(
Than I installed JET 4.0 SP8 and MDAC 2.8: It still doesn't work, but the
Error-message is different now:
Object reference not set to an instance of an object. at
System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction)
at
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
I'm still not able to find out what causes the problem and how to find a
resolution :-( Any help would really be appreciated!! The weird thing is
that it only happens on one pc (NT SP6a), on the others I tested it (a 2000
and a NT SP6A) it works fine...
Thanks in advance,
Pieter
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=blue]
> Hi,
>
> I'm having this error in a VB.NET-application at the moment that I attempt
> to read data from an SQL Server:
>
>
> The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data
> Access Components(MDAC) version 2.6 or later. at
> System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
isInTransaction)[color=blue]
> at
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue]
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
> Failed to Load Call Data Call Data Failure
>
>
> However the MDAC 2.7 is installed! And when I look into the registry it is
> indicated as installed too:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> "2.71.9040.2"
>
> The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)[/color]
pc.[color=blue]
>
> Does anybody know about thisp roblem? And some solution? Could it be[/color]
because[color=blue]
> of some restictions (although I do have full Admin rights on the pc).
>
> I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> hehe).
>
> Thanks a lot in advance, any help, hints etc will be really appreciated!
>
> Pieter
>
>[/color] | | | | re: "MDAC required" but it's installed...
I checked this alreaddy in the beginning, but everything looks fine
(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\ FullInstallVer =
"2.71.9040.2")
"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:OhgN%23m8REHA.904@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi Pieter,
>
> Does this page maybe help,
>
>[/color] http://msdn.microsoft.com/library/de...Components.asp[color=blue]
>
> Cor
>
>[/color] | | | | re: "MDAC required" but it's installed...
Ok it's absolutely not my lucky day :-(
On the other NT I get the same error now...
Couldn't it be because of an error on the SQL Server? Some security-stuff? I
checked with the administrator and he didn't change anything...
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:Of78XH9REHA.1396@TK2MSFTNGP12.phx.gbl...[color=blue]
> Ok: some 'funny' results:
>
> I installed JET 4.0 SP7: It worked once (ONCE!!), and afterwarths I got[/color]
the[color=blue]
> same error... :-(
>
> Than I installed JET 4.0 SP8 and MDAC 2.8: It still doesn't work, but the
> Error-message is different now:
> Object reference not set to an instance of an object. at
> System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
isInTransaction)[color=blue]
> at
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue]
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
>
>
> I'm still not able to find out what causes the problem and how to find a
> resolution :-( Any help would really be appreciated!! The weird thing is
> that it only happens on one pc (NT SP6a), on the others I tested it (a[/color]
2000[color=blue]
> and a NT SP6A) it works fine...
>
> Thanks in advance,
>
> Pieter
>
>
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=green]
> > Hi,
> >
> > I'm having this error in a VB.NET-application at the moment that I[/color][/color]
attempt[color=blue][color=green]
> > to read data from an SQL Server:
> >
> >
> > The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft[/color][/color]
Data[color=blue][color=green]
> > Access Components(MDAC) version 2.6 or later. at
> > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
> isInTransaction)[color=green]
> > at
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green]
> > tionString options, Boolean& isInTransaction)
> > at System.Data.SqlClient.SqlConnection.Open()
> > Failed to Load Call Data Call Data Failure
> >
> >
> > However the MDAC 2.7 is installed! And when I look into the registry it[/color][/color]
is[color=blue][color=green]
> > indicated as installed too:
> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> > "2.71.9040.2"
> >
> > The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)[/color]
> pc.[color=green]
> >
> > Does anybody know about thisp roblem? And some solution? Could it be[/color]
> because[color=green]
> > of some restictions (although I do have full Admin rights on the pc).
> >
> > I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> > hehe).
> >
> > Thanks a lot in advance, any help, hints etc will be really appreciated!
> >
> > Pieter
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
DraguVaso wrote:[color=blue]
> Maybe MDAC 2.8 will help. And would Jet have something to do with it?[/color]
Wild guess: Do you use Windows Update? A recent critical update included a
JET update, and since then my Access 2003 seems to be a little bit confused.
See http://groups.google.com/groups?lr=&...tngp13.phx.gbl
Boris | | | | re: "MDAC required" but it's installed...
Ok, I modified my source-code a little bit so I can se where it goes wrong:
This is my function:
Private Sub ShowClientInfo(ByVal strIndice As String)
If strIndice.Length <= 0 Then
txtInfo.Text = "No Identification"
Exit Sub
End If
Dim strSql As String
strSql = "SELECT TOP 1 (tdprNFoy + tdprNCCD) AS DossierNr,
(tcliLSigl1 + ' ' + tcliLNomPren1) AS Cl1, " & _
"(tcliLSigl2 + ' ' + tcliLNomPren2) AS Cl2, tdcaNCartphy, Auto,
Choice " & _
"FROM tblCalls LEFT JOIN tblDossiers ON tblCalls.DossierID =
tblDossiers.DossierID " & _
"WHERE (Indice = '" & strIndice & "') " & _
"ORDER BY CallID DESC"
MessageBox.Show("a1")
Dim dtrSql As SqlDataReader
Dim conSql As SqlConnection
conSql = New SqlConnection(strConn)
Dim cmdSql As SqlCommand
MessageBox.Show("a2" & conSql.ConnectionString)
Try
MessageBox.Show("a3")
conSql.Open()
MessageBox.Show("a4")
cmdSql = New SqlCommand(strSql, conSql)
MessageBox.Show("b")
dtrSql = cmdSql.ExecuteReader(CommandBehavior.SingleRow)
MessageBox.Show("c")
dtrSql.Read()
MessageBox.Show("d")
If dtrSql.HasRows Then
MessageBox.Show("e")
strDossierNr = dtrSql.Item("DossierNr").ToString
MessageBox.Show("f")
txtInfo.Text = "DOSSIER: " & strDossierNr & cstDelimit & _
"CARD: " & dtrSql.Item("tdcaNCartphy").ToString & cstDelimit
& _
dtrSql.Item("Choice").ToString & cstDelimit & vbCrLf & _
dtrSql.Item("Cl1").ToString & ", " &
dtrSql.Item("Cl2").ToString
MessageBox.Show("g")
If chkAuto.Checked Then
'Auto-handeling doen
Select Case dtrSql.Item("Auto").ToString
Case "SAVE"
Dim clsVBS As New clsVBScripts
clsVBS.SAVE(strDossierNr)
clsVBS = Nothing
Case "CONT"
Dim clsVBS As New clsVBScripts
clsVBS.CONT(strDossierNr)
clsVBS = Nothing
End Select
End If
Else
MessageBox.Show("Failed to Load Call Data", "Call Data
Failure", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
End If
Catch ex As Exception
ErrorMessage(Me, ex, "Failed to Load Call Data", "Call Data
Failure")
Finally
MessageBox.Show("k")
dtrSql.Close()
MessageBox.Show("k1")
cmdSql.Dispose()
MessageBox.Show("k2")
If conSql.State = ConnectionState.Open Then
MessageBox.Show("l")
conSql.Close()
End If
MessageBox.Show("m")
dtrSql = Nothing
cmdSql = Nothing
conSql = Nothing
MessageBox.Show("n")
End Try
End Sub
I get this messageboxes: a1, a2, a3, than the error, k
So the error seems to happen on the "conSql.Open()"-statement.
Really weird is also that it only shows the "k" of the finally, and not the
k1, k2, l, m and n... :-(
And much weirder: I managed to get it working one time again, but the next
time it didn't work anymore :-( So it works kind of randomly: 2 times it
worked, +- 15 times it didn't work... :-( Couldn't it be because something
on the SQL Server?
please help :-(
Pieter
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:Of78XH9REHA.1396@TK2MSFTNGP12.phx.gbl...[color=blue]
> Ok: some 'funny' results:
>
> I installed JET 4.0 SP7: It worked once (ONCE!!), and afterwarths I got[/color]
the[color=blue]
> same error... :-(
>
> Than I installed JET 4.0 SP8 and MDAC 2.8: It still doesn't work, but the
> Error-message is different now:
> Object reference not set to an instance of an object. at
> System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
isInTransaction)[color=blue]
> at
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue]
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
>
>
> I'm still not able to find out what causes the problem and how to find a
> resolution :-( Any help would really be appreciated!! The weird thing is
> that it only happens on one pc (NT SP6a), on the others I tested it (a[/color]
2000[color=blue]
> and a NT SP6A) it works fine...
>
> Thanks in advance,
>
> Pieter
>
>
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=green]
> > Hi,
> >
> > I'm having this error in a VB.NET-application at the moment that I[/color][/color]
attempt[color=blue][color=green]
> > to read data from an SQL Server:
> >
> >
> > The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft[/color][/color]
Data[color=blue][color=green]
> > Access Components(MDAC) version 2.6 or later. at
> > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
> isInTransaction)[color=green]
> > at
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green]
> > tionString options, Boolean& isInTransaction)
> > at System.Data.SqlClient.SqlConnection.Open()
> > Failed to Load Call Data Call Data Failure
> >
> >
> > However the MDAC 2.7 is installed! And when I look into the registry it[/color][/color]
is[color=blue][color=green]
> > indicated as installed too:
> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> > "2.71.9040.2"
> >
> > The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)[/color]
> pc.[color=green]
> >
> > Does anybody know about thisp roblem? And some solution? Could it be[/color]
> because[color=green]
> > of some restictions (although I do have full Admin rights on the pc).
> >
> > I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> > hehe).
> >
> > Thanks a lot in advance, any help, hints etc will be really appreciated!
> >
> > Pieter
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
No I dodn't use Windows Update on these pc's. In fact there are all NT, and
there isn't any Windows Update on NT (or am I wrong?).
As a matter of fact: I use Windows Update on my pc, and here it works? Maybe
I should use Windows Update? hehe :-)
"Boris" <boris@gtemail.net> wrote in message
news:OUSffF%23REHA.2604@TK2MSFTNGP10.phx.gbl...[color=blue]
> DraguVaso wrote:[color=green]
> > Maybe MDAC 2.8 will help. And would Jet have something to do with it?[/color]
>
> Wild guess: Do you use Windows Update? A recent critical update included a
> JET update, and since then my Access 2003 seems to be a little bit[/color]
confused.[color=blue]
> See
>[/color] http://groups.google.com/groups?lr=&...tngp13.phx.gbl[color=blue]
>
> Boris
>
>[/color] | | | | re: "MDAC required" but it's installed... | | | | re: "MDAC required" but it's installed...
I tryed that, but it didn't work: the error becomes now:
Object reference not set to an instance of an object. at
System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction)
at
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
"scorpion53061" <scorpion_53061@nospamhereeveryahoo.com> wrote in message
news:u5tHsY%23REHA.3988@tk2msftngp13.phx.gbl...[color=blue]
> reinstall jet.
>
>[/color] http://www.microsoft.com/downloads/d...displaylang=en[color=blue]
>
> It is time. Then reinstall MDAC 2.8.
>
>[/color] | | | | re: "MDAC required" but it's installed...
This error normally occurs when a connection cannot be established with the
server.
Create a new project (do not use anything from this current project you are
in) and attempt to create a connection there. Don't get fancy.
If this does not work, copy and paste here the code you are using.
If this does not work then
1. reinstall Jet
2. reinstall the Framework
3. Reinstall MDAC 2.8
If this does not work reinstall Windows. Others may disagree with me but
trying all this if it fails it is clear the corrpution is in your operating
environment.
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:urgk6e%23REHA.3628@TK2MSFTNGP12.phx.gbl...[color=blue]
> I tryed that, but it didn't work: the error becomes now:
> Object reference not set to an instance of an object. at
> System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
isInTransaction)[color=blue]
> at
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue]
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
>
> "scorpion53061" <scorpion_53061@nospamhereeveryahoo.com> wrote in message
> news:u5tHsY%23REHA.3988@tk2msftngp13.phx.gbl...[color=green]
> > reinstall jet.
> >
> >[/color]
>[/color] http://www.microsoft.com/downloads/d...displaylang=en[color=blue][color=green]
> >
> > It is time. Then reinstall MDAC 2.8.
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
Hi,
Make sure that the MDAC is also installed on the database server.
Leo
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=blue]
> Hi,
>
> I'm having this error in a VB.NET-application at the moment that I attempt
> to read data from an SQL Server:
>
>
> The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data
> Access Components(MDAC) version 2.6 or later. at
> System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
isInTransaction)[color=blue]
> at
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue]
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
> Failed to Load Call Data Call Data Failure
>
>
> However the MDAC 2.7 is installed! And when I look into the registry it is
> indicated as installed too:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> "2.71.9040.2"
>
> The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)[/color]
pc.[color=blue]
>
> Does anybody know about thisp roblem? And some solution? Could it be[/color]
because[color=blue]
> of some restictions (although I do have full Admin rights on the pc).
>
> I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> hehe).
>
> Thanks a lot in advance, any help, hints etc will be really appreciated!
>
> Pieter
>
>[/color] | | | | re: "MDAC required" but it's installed...
MDAC 2.7 SP1 REFRESH is isntalled on the Server...
"Leo Muller" <leo-m@keshet-i.com> wrote in message
news:c9jpcm$ifm$1@news2.netvision.net.il...[color=blue]
> Hi,
>
> Make sure that the MDAC is also installed on the database server.
>
> Leo
>
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=green]
> > Hi,
> >
> > I'm having this error in a VB.NET-application at the moment that I[/color][/color]
attempt[color=blue][color=green]
> > to read data from an SQL Server:
> >
> >
> > The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft[/color][/color]
Data[color=blue][color=green]
> > Access Components(MDAC) version 2.6 or later. at
> > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
> isInTransaction)[color=green]
> > at
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green]
> > tionString options, Boolean& isInTransaction)
> > at System.Data.SqlClient.SqlConnection.Open()
> > Failed to Load Call Data Call Data Failure
> >
> >
> > However the MDAC 2.7 is installed! And when I look into the registry it[/color][/color]
is[color=blue][color=green]
> > indicated as installed too:
> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> > "2.71.9040.2"
> >
> > The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)[/color]
> pc.[color=green]
> >
> > Does anybody know about thisp roblem? And some solution? Could it be[/color]
> because[color=green]
> > of some restictions (although I do have full Admin rights on the pc).
> >
> > I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> > hehe).
> >
> > Thanks a lot in advance, any help, hints etc will be really appreciated!
> >
> > Pieter
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
Ok, today's news: I tested it: it worked once, than it didn't work anymore.
After that I made a small Test-appliation to test the conenction: I make my
connection etc the same way as in my application, and it works all the
time!!
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strConn As String
strConn = "Server=BESQL1;DataBase=VocalcomCetelem;User
ID=vocalcomcetelem;Password=vocalcomcetelem;Truste d_Connection=False"
Dim strSql As String
strSql = "SELECT TOP 1 * " & _
"FROM tblCalls " & _
"ORDER BY CallID DESC"
Dim dtrSql As SqlDataReader
Dim conSql As SqlConnection
conSql = New SqlConnection(strConn)
Dim cmdSql As SqlCommand
Try
conSql.Open()
cmdSql = New SqlCommand(strSql, conSql)
dtrSql = cmdSql.ExecuteReader(CommandBehavior.SingleRow)
dtrSql.Read()
If dtrSql.HasRows Then
MessageBox.Show(dtrSql.Item("tdcaNCartphy").ToStri ng)
End If
Catch ex As Exception
MessageBox.Show(ex.Message & ex.StackTrace)
End Try
End Sub
Afterwurths I did some more tests with my application: on one pc it still
didn't work, on the other miraculously it worked 6-7 times one after the
other without error!! I really can't get it why it works sometimes and other
times it doesn't.
Are there 'better' ways to open the connection? Maybe I should make my query
on another way so it doesn't need to open the connection like this? Or I
don't know how?
Thanks, Pieter
"scorpion53061" <scorpion_53061@nospamhereeveryahoo.com> wrote in message
news:utNIzo%23REHA.1256@TK2MSFTNGP09.phx.gbl...[color=blue]
> This error normally occurs when a connection cannot be established with[/color]
the[color=blue]
> server.
>
> Create a new project (do not use anything from this current project you[/color]
are[color=blue]
> in) and attempt to create a connection there. Don't get fancy.
>
> If this does not work, copy and paste here the code you are using.
>
> If this does not work then
>
> 1. reinstall Jet
> 2. reinstall the Framework
> 3. Reinstall MDAC 2.8
>
> If this does not work reinstall Windows. Others may disagree with me but
> trying all this if it fails it is clear the corrpution is in your[/color]
operating[color=blue]
> environment.
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:urgk6e%23REHA.3628@TK2MSFTNGP12.phx.gbl...[color=green]
> > I tryed that, but it didn't work: the error becomes now:
> > Object reference not set to an instance of an object. at
> > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
> isInTransaction)[color=green]
> > at
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green]
> > tionString options, Boolean& isInTransaction)
> > at System.Data.SqlClient.SqlConnection.Open()
> >
> > "scorpion53061" <scorpion_53061@nospamhereeveryahoo.com> wrote in[/color][/color]
message[color=blue][color=green]
> > news:u5tHsY%23REHA.3988@tk2msftngp13.phx.gbl...[color=darkred]
> > > reinstall jet.
> > >
> > >[/color]
> >[/color]
>[/color] http://www.microsoft.com/downloads/d...displaylang=en[color=blue][color=green][color=darkred]
> > >
> > > It is time. Then reinstall MDAC 2.8.
> > >
> > >[/color]
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
> After that I made a small Test-appliation to test the conenction: I make
my[color=blue]
> connection etc the same way as in my application, and it works all the
> time!!
> "scorpion53061" <scorpion_53061@nospamhereeveryahoo.com> wrote in message
> news:utNIzo%23REHA.1256@TK2MSFTNGP09.phx.gbl...[color=green]
> > This error normally occurs when a connection cannot be established with[/color]
> the[color=green]
> > server.
> >[/color][/color]
connection issue just like I had said!! :) | | | | re: "MDAC required" but it's installed...
Hi,
Obviously the connection has problems, that's why it can't open it, and in
your "finally" part it can't close it either, since it wasn't opened.
I think you can isolate the problem by just creating the connection, open
and close it. The same will happen then.
If the connection does work sometimes, then there isn't anything wrong with
your application, or MDAC. Rather you may be experiencing a network problem,
or a SQL problem.
use try and catch while opening the connection, and check the error
description and source that it will return.
Leo
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:O4AnFR%23REHA.1448@TK2MSFTNGP11.phx.gbl...[color=blue]
> Ok, I modified my source-code a little bit so I can se where it goes[/color]
wrong:[color=blue]
>
> This is my function:
>
> Private Sub ShowClientInfo(ByVal strIndice As String)
> If strIndice.Length <= 0 Then
> txtInfo.Text = "No Identification"
> Exit Sub
> End If
>
> Dim strSql As String
> strSql = "SELECT TOP 1 (tdprNFoy + tdprNCCD) AS DossierNr,
> (tcliLSigl1 + ' ' + tcliLNomPren1) AS Cl1, " & _
> "(tcliLSigl2 + ' ' + tcliLNomPren2) AS Cl2, tdcaNCartphy, Auto,
> Choice " & _
> "FROM tblCalls LEFT JOIN tblDossiers ON tblCalls.DossierID =
> tblDossiers.DossierID " & _
> "WHERE (Indice = '" & strIndice & "') " & _
> "ORDER BY CallID DESC"
>
> MessageBox.Show("a1")
> Dim dtrSql As SqlDataReader
> Dim conSql As SqlConnection
> conSql = New SqlConnection(strConn)
> Dim cmdSql As SqlCommand
> MessageBox.Show("a2" & conSql.ConnectionString)
> Try
> MessageBox.Show("a3")
> conSql.Open()
> MessageBox.Show("a4")
> cmdSql = New SqlCommand(strSql, conSql)
> MessageBox.Show("b")
> dtrSql = cmdSql.ExecuteReader(CommandBehavior.SingleRow)
> MessageBox.Show("c")
> dtrSql.Read()
> MessageBox.Show("d")
> If dtrSql.HasRows Then
> MessageBox.Show("e")
> strDossierNr = dtrSql.Item("DossierNr").ToString
> MessageBox.Show("f")
> txtInfo.Text = "DOSSIER: " & strDossierNr & cstDelimit & _
> "CARD: " & dtrSql.Item("tdcaNCartphy").ToString &[/color]
cstDelimit[color=blue]
> & _
> dtrSql.Item("Choice").ToString & cstDelimit & vbCrLf & _
> dtrSql.Item("Cl1").ToString & ", " &
> dtrSql.Item("Cl2").ToString
> MessageBox.Show("g")
> If chkAuto.Checked Then
> 'Auto-handeling doen
> Select Case dtrSql.Item("Auto").ToString
> Case "SAVE"
> Dim clsVBS As New clsVBScripts
> clsVBS.SAVE(strDossierNr)
> clsVBS = Nothing
>
> Case "CONT"
> Dim clsVBS As New clsVBScripts
> clsVBS.CONT(strDossierNr)
> clsVBS = Nothing
>
> End Select
> End If
> Else
> MessageBox.Show("Failed to Load Call Data", "Call Data
> Failure", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
> End If
>
> Catch ex As Exception
> ErrorMessage(Me, ex, "Failed to Load Call Data", "Call Data
> Failure")
> Finally
> MessageBox.Show("k")
> dtrSql.Close()
> MessageBox.Show("k1")
> cmdSql.Dispose()
> MessageBox.Show("k2")
> If conSql.State = ConnectionState.Open Then
> MessageBox.Show("l")
> conSql.Close()
> End If
> MessageBox.Show("m")
> dtrSql = Nothing
> cmdSql = Nothing
> conSql = Nothing
> MessageBox.Show("n")
> End Try
>
> End Sub
>
>
> I get this messageboxes: a1, a2, a3, than the error, k
> So the error seems to happen on the "conSql.Open()"-statement.
> Really weird is also that it only shows the "k" of the finally, and not[/color]
the[color=blue]
> k1, k2, l, m and n... :-(
>
> And much weirder: I managed to get it working one time again, but the next
> time it didn't work anymore :-( So it works kind of randomly: 2 times it
> worked, +- 15 times it didn't work... :-( Couldn't it be because something
> on the SQL Server?
>
> please help :-(
>
> Pieter
>
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:Of78XH9REHA.1396@TK2MSFTNGP12.phx.gbl...[color=green]
> > Ok: some 'funny' results:
> >
> > I installed JET 4.0 SP7: It worked once (ONCE!!), and afterwarths I got[/color]
> the[color=green]
> > same error... :-(
> >
> > Than I installed JET 4.0 SP8 and MDAC 2.8: It still doesn't work, but[/color][/color]
the[color=blue][color=green]
> > Error-message is different now:
> > Object reference not set to an instance of an object. at
> > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
> isInTransaction)[color=green]
> > at
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green]
> > tionString options, Boolean& isInTransaction)
> > at System.Data.SqlClient.SqlConnection.Open()
> >
> >
> > I'm still not able to find out what causes the problem and how to find a
> > resolution :-( Any help would really be appreciated!! The weird thing is
> > that it only happens on one pc (NT SP6a), on the others I tested it (a[/color]
> 2000[color=green]
> > and a NT SP6A) it works fine...
> >
> > Thanks in advance,
> >
> > Pieter
> >
> >
> >
> > "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> > news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > I'm having this error in a VB.NET-application at the moment that I[/color][/color]
> attempt[color=green][color=darkred]
> > > to read data from an SQL Server:
> > >
> > >
> > > The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft[/color][/color]
> Data[color=green][color=darkred]
> > > Access Components(MDAC) version 2.6 or later. at
> > > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
> > isInTransaction)[color=darkred]
> > > at
> > >[/color]
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green][color=darkred]
> > > tionString options, Boolean& isInTransaction)
> > > at System.Data.SqlClient.SqlConnection.Open()
> > > Failed to Load Call Data Call Data Failure
> > >
> > >
> > > However the MDAC 2.7 is installed! And when I look into the registry[/color][/color][/color]
it[color=blue]
> is[color=green][color=darkred]
> > > indicated as installed too:
> > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> > > "2.71.9040.2"
> > >
> > > The .NET Framework is installed (1.1), and it is on a Windows NT (Sp[/color][/color][/color]
6a)[color=blue][color=green]
> > pc.[color=darkred]
> > >
> > > Does anybody know about thisp roblem? And some solution? Could it be[/color]
> > because[color=darkred]
> > > of some restictions (although I do have full Admin rights on the pc).
> > >
> > > I'ts really urgent and bothering me (I have to do a demo in 20[/color][/color][/color]
minutes,[color=blue][color=green][color=darkred]
> > > hehe).
> > >
> > > Thanks a lot in advance, any help, hints etc will be really[/color][/color][/color]
appreciated![color=blue][color=green][color=darkred]
> > >
> > > Pieter
> > >
> > >[/color]
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
I made a small test-application, and that works all the time (tested it
20-30 times), but the 'real' application works like 20% of the time.
My test-application:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strConn As String
strConn = "Server=BESQL1;DataBase=VocalcomCetelem;User
ID=vocalcomcetelem;Password=vocalcomcetelem;Truste d_Connection=False"
Dim strSql As String
strSql = "SELECT TOP 1 * " & _
"FROM tblCalls " & _
"ORDER BY CallID DESC"
Dim dtrSql As SqlDataReader
Dim conSql As SqlConnection
conSql = New SqlConnection(strConn)
Dim cmdSql As SqlCommand
Try
conSql.Open()
cmdSql = New SqlCommand(strSql, conSql)
dtrSql = cmdSql.ExecuteReader(CommandBehavior.SingleRow)
dtrSql.Read()
If dtrSql.HasRows Then
MessageBox.Show(dtrSql.Item("tdcaNCartphy").ToStri ng)
End If
Catch ex As Exception
MessageBox.Show(ex.Message & ex.StackTrace)
End Try
End Sub
The error's:
Like this with MDAC 2.7 installed:
The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data
Access Components(MDAC) version 2.6 or later.
at System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
isInTransaction)
at
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
Or this with MDAC 2.8:
Object reference not set to an instance of an object.
at System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
isInTransaction)
at
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
Any idea? :-(
"Leo Muller" <leo-m@keshet-i.com> wrote in message
news:c9kcps$ohv$1@news2.netvision.net.il...[color=blue]
> Hi,
>
> Obviously the connection has problems, that's why it can't open it, and in
> your "finally" part it can't close it either, since it wasn't opened.
>
> I think you can isolate the problem by just creating the connection, open
> and close it. The same will happen then.
>
> If the connection does work sometimes, then there isn't anything wrong[/color]
with[color=blue]
> your application, or MDAC. Rather you may be experiencing a network[/color]
problem,[color=blue]
> or a SQL problem.
>
> use try and catch while opening the connection, and check the error
> description and source that it will return.
>
> Leo
>
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:O4AnFR%23REHA.1448@TK2MSFTNGP11.phx.gbl...[color=green]
> > Ok, I modified my source-code a little bit so I can se where it goes[/color]
> wrong:[color=green]
> >
> > This is my function:
> >
> > Private Sub ShowClientInfo(ByVal strIndice As String)
> > If strIndice.Length <= 0 Then
> > txtInfo.Text = "No Identification"
> > Exit Sub
> > End If
> >
> > Dim strSql As String
> > strSql = "SELECT TOP 1 (tdprNFoy + tdprNCCD) AS DossierNr,
> > (tcliLSigl1 + ' ' + tcliLNomPren1) AS Cl1, " & _
> > "(tcliLSigl2 + ' ' + tcliLNomPren2) AS Cl2, tdcaNCartphy, Auto,
> > Choice " & _
> > "FROM tblCalls LEFT JOIN tblDossiers ON tblCalls.DossierID =
> > tblDossiers.DossierID " & _
> > "WHERE (Indice = '" & strIndice & "') " & _
> > "ORDER BY CallID DESC"
> >
> > MessageBox.Show("a1")
> > Dim dtrSql As SqlDataReader
> > Dim conSql As SqlConnection
> > conSql = New SqlConnection(strConn)
> > Dim cmdSql As SqlCommand
> > MessageBox.Show("a2" & conSql.ConnectionString)
> > Try
> > MessageBox.Show("a3")
> > conSql.Open()
> > MessageBox.Show("a4")
> > cmdSql = New SqlCommand(strSql, conSql)
> > MessageBox.Show("b")
> > dtrSql = cmdSql.ExecuteReader(CommandBehavior.SingleRow)
> > MessageBox.Show("c")
> > dtrSql.Read()
> > MessageBox.Show("d")
> > If dtrSql.HasRows Then
> > MessageBox.Show("e")
> > strDossierNr = dtrSql.Item("DossierNr").ToString
> > MessageBox.Show("f")
> > txtInfo.Text = "DOSSIER: " & strDossierNr & cstDelimit &[/color][/color]
_[color=blue][color=green]
> > "CARD: " & dtrSql.Item("tdcaNCartphy").ToString &[/color]
> cstDelimit[color=green]
> > & _
> > dtrSql.Item("Choice").ToString & cstDelimit & vbCrLf & _
> > dtrSql.Item("Cl1").ToString & ", " &
> > dtrSql.Item("Cl2").ToString
> > MessageBox.Show("g")
> > If chkAuto.Checked Then
> > 'Auto-handeling doen
> > Select Case dtrSql.Item("Auto").ToString
> > Case "SAVE"
> > Dim clsVBS As New clsVBScripts
> > clsVBS.SAVE(strDossierNr)
> > clsVBS = Nothing
> >
> > Case "CONT"
> > Dim clsVBS As New clsVBScripts
> > clsVBS.CONT(strDossierNr)
> > clsVBS = Nothing
> >
> > End Select
> > End If
> > Else
> > MessageBox.Show("Failed to Load Call Data", "Call Data
> > Failure", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
> > End If
> >
> > Catch ex As Exception
> > ErrorMessage(Me, ex, "Failed to Load Call Data", "Call Data
> > Failure")
> > Finally
> > MessageBox.Show("k")
> > dtrSql.Close()
> > MessageBox.Show("k1")
> > cmdSql.Dispose()
> > MessageBox.Show("k2")
> > If conSql.State = ConnectionState.Open Then
> > MessageBox.Show("l")
> > conSql.Close()
> > End If
> > MessageBox.Show("m")
> > dtrSql = Nothing
> > cmdSql = Nothing
> > conSql = Nothing
> > MessageBox.Show("n")
> > End Try
> >
> > End Sub
> >
> >
> > I get this messageboxes: a1, a2, a3, than the error, k
> > So the error seems to happen on the "conSql.Open()"-statement.
> > Really weird is also that it only shows the "k" of the finally, and not[/color]
> the[color=green]
> > k1, k2, l, m and n... :-(
> >
> > And much weirder: I managed to get it working one time again, but the[/color][/color]
next[color=blue][color=green]
> > time it didn't work anymore :-( So it works kind of randomly: 2 times it
> > worked, +- 15 times it didn't work... :-( Couldn't it be because[/color][/color]
something[color=blue][color=green]
> > on the SQL Server?
> >
> > please help :-(
> >
> > Pieter
> >
> >
> > "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> > news:Of78XH9REHA.1396@TK2MSFTNGP12.phx.gbl...[color=darkred]
> > > Ok: some 'funny' results:
> > >
> > > I installed JET 4.0 SP7: It worked once (ONCE!!), and afterwarths I[/color][/color][/color]
got[color=blue][color=green]
> > the[color=darkred]
> > > same error... :-(
> > >
> > > Than I installed JET 4.0 SP8 and MDAC 2.8: It still doesn't work, but[/color][/color]
> the[color=green][color=darkred]
> > > Error-message is different now:
> > > Object reference not set to an instance of an object. at
> > > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
> > isInTransaction)[color=darkred]
> > > at
> > >[/color]
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green][color=darkred]
> > > tionString options, Boolean& isInTransaction)
> > > at System.Data.SqlClient.SqlConnection.Open()
> > >
> > >
> > > I'm still not able to find out what causes the problem and how to find[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > resolution :-( Any help would really be appreciated!! The weird thing[/color][/color][/color]
is[color=blue][color=green][color=darkred]
> > > that it only happens on one pc (NT SP6a), on the others I tested it (a[/color]
> > 2000[color=darkred]
> > > and a NT SP6A) it works fine...
> > >
> > > Thanks in advance,
> > >
> > > Pieter
> > >
> > >
> > >
> > > "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> > > news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...
> > > > Hi,
> > > >
> > > > I'm having this error in a VB.NET-application at the moment that I[/color]
> > attempt[color=darkred]
> > > > to read data from an SQL Server:
> > > >
> > > >
> > > > The .Net Data SQL Provider (System.Data.SqlClient) requires[/color][/color][/color]
Microsoft[color=blue][color=green]
> > Data[color=darkred]
> > > > Access Components(MDAC) version 2.6 or later. at
> > > > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> > > isInTransaction)
> > > > at
> > > >
> > >[/color]
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green][color=darkred]
> > > > tionString options, Boolean& isInTransaction)
> > > > at System.Data.SqlClient.SqlConnection.Open()
> > > > Failed to Load Call Data Call Data Failure
> > > >
> > > >
> > > > However the MDAC 2.7 is installed! And when I look into the registry[/color][/color]
> it[color=green]
> > is[color=darkred]
> > > > indicated as installed too:
> > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> > > > "2.71.9040.2"
> > > >
> > > > The .NET Framework is installed (1.1), and it is on a Windows NT (Sp[/color][/color]
> 6a)[color=green][color=darkred]
> > > pc.
> > > >
> > > > Does anybody know about thisp roblem? And some solution? Could it be
> > > because
> > > > of some restictions (although I do have full Admin rights on the[/color][/color][/color]
pc).[color=blue][color=green][color=darkred]
> > > >
> > > > I'ts really urgent and bothering me (I have to do a demo in 20[/color][/color]
> minutes,[color=green][color=darkred]
> > > > hehe).
> > > >
> > > > Thanks a lot in advance, any help, hints etc will be really[/color][/color]
> appreciated![color=green][color=darkred]
> > > >
> > > > Pieter
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
Ok I finally found out what caused the problem: Fasten your seatbelts:
The EXTRA.System-object conflcited with the SetWindowsHookEx-function. Both
of them worked fine, and there wasn't anything to see at it. But they caused
sometimes an error on the Database-Connection...
Disabling these functions on NT (and now finding an other solution for that
part) fixed the problem.
Thanks a lot to averything who helped me looking for a solution.
Pieter
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...[color=blue]
> Hi,
>
> I'm having this error in a VB.NET-application at the moment that I attempt
> to read data from an SQL Server:
>
>
> The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data
> Access Components(MDAC) version 2.6 or later. at
> System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&[/color]
isInTransaction)[color=blue]
> at
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue]
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
> Failed to Load Call Data Call Data Failure
>
>
> However the MDAC 2.7 is installed! And when I look into the registry it is
> indicated as installed too:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> "2.71.9040.2"
>
> The .NET Framework is installed (1.1), and it is on a Windows NT (Sp 6a)[/color]
pc.[color=blue]
>
> Does anybody know about thisp roblem? And some solution? Could it be[/color]
because[color=blue]
> of some restictions (although I do have full Admin rights on the pc).
>
> I'ts really urgent and bothering me (I have to do a demo in 20 minutes,
> hehe).
>
> Thanks a lot in advance, any help, hints etc will be really appreciated!
>
> Pieter
>
>[/color] | | | | re: "MDAC required" but it's installed...
>[color=blue]
> Thanks a lot to averything who helped me looking for a solution.
>
> Pieter[/color]
I am happy you finally were able to put this baby to bed!! | | | | re: "MDAC required" but it's installed...
Hehe thanks :-)
I hope if I'll ever have children they won't be such a pain in the ass :-)
Although, one advantage children have above software is that you can beat
them up ;-)
"scorpion53061" <scorpion_53061@nospamhereeveryahoo.com> wrote in message
news:%23KqtK9WSEHA.4032@TK2MSFTNGP11.phx.gbl...[color=blue][color=green]
> >
> > Thanks a lot to averything who helped me looking for a solution.
> >
> > Pieter[/color]
>
> I am happy you finally were able to put this baby to bed!!
>
>[/color] | | | | re: "MDAC required" but it's installed...
Hi, I also have just started to experience the MDAC required messages even
though I installed 2.7 and then 2.8.
My situation is a bit different though. I was developing on a Windows 2000
Server machine with Visual Studio .Net 2002 and then I upgraded the OS to
Windows Server 2003 and that's when I started to get the error messages.
I can connect using the OracleClient Connection objects but not the
Oledb.Connection objects?
Is there something special I have to do with Windows Server 2003.
Thanks,
Patrick
"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:eE#HScJSEHA.1160@TK2MSFTNGP09.phx.gbl...[color=blue]
> I made a small test-application, and that works all the time (tested it
> 20-30 times), but the 'real' application works like 20% of the time.
>
> My test-application:
> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles Button1.Click
> Dim strConn As String
> strConn = "Server=BESQL1;DataBase=VocalcomCetelem;User
> ID=vocalcomcetelem;Password=vocalcomcetelem;Truste d_Connection=False"
>
> Dim strSql As String
> strSql = "SELECT TOP 1 * " & _
> "FROM tblCalls " & _
> "ORDER BY CallID DESC"
>
> Dim dtrSql As SqlDataReader
> Dim conSql As SqlConnection
> conSql = New SqlConnection(strConn)
> Dim cmdSql As SqlCommand
> Try
> conSql.Open()
> cmdSql = New SqlCommand(strSql, conSql)
> dtrSql = cmdSql.ExecuteReader(CommandBehavior.SingleRow)
> dtrSql.Read()
> If dtrSql.HasRows Then
> MessageBox.Show(dtrSql.Item("tdcaNCartphy").ToStri ng)
> End If
> Catch ex As Exception
> MessageBox.Show(ex.Message & ex.StackTrace)
> End Try
>
> End Sub
>
>
> The error's:
> Like this with MDAC 2.7 installed:
> The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data
> Access Components(MDAC) version 2.6 or later.
> at System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> isInTransaction)
> at
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue]
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
> Or this with MDAC 2.8:
> Object reference not set to an instance of an object.
> at System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> isInTransaction)
> at
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue]
> tionString options, Boolean& isInTransaction)
> at System.Data.SqlClient.SqlConnection.Open()
>
>
> Any idea? :-(
>
> "Leo Muller" <leo-m@keshet-i.com> wrote in message
> news:c9kcps$ohv$1@news2.netvision.net.il...[color=green]
> > Hi,
> >
> > Obviously the connection has problems, that's why it can't open it, and[/color][/color]
in[color=blue][color=green]
> > your "finally" part it can't close it either, since it wasn't opened.
> >
> > I think you can isolate the problem by just creating the connection,[/color][/color]
open[color=blue][color=green]
> > and close it. The same will happen then.
> >
> > If the connection does work sometimes, then there isn't anything wrong[/color]
> with[color=green]
> > your application, or MDAC. Rather you may be experiencing a network[/color]
> problem,[color=green]
> > or a SQL problem.
> >
> > use try and catch while opening the connection, and check the error
> > description and source that it will return.
> >
> > Leo
> >
> >
> > "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> > news:O4AnFR%23REHA.1448@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > Ok, I modified my source-code a little bit so I can se where it goes[/color]
> > wrong:[color=darkred]
> > >
> > > This is my function:
> > >
> > > Private Sub ShowClientInfo(ByVal strIndice As String)
> > > If strIndice.Length <= 0 Then
> > > txtInfo.Text = "No Identification"
> > > Exit Sub
> > > End If
> > >
> > > Dim strSql As String
> > > strSql = "SELECT TOP 1 (tdprNFoy + tdprNCCD) AS DossierNr,
> > > (tcliLSigl1 + ' ' + tcliLNomPren1) AS Cl1, " & _
> > > "(tcliLSigl2 + ' ' + tcliLNomPren2) AS Cl2, tdcaNCartphy,[/color][/color][/color]
Auto,[color=blue][color=green][color=darkred]
> > > Choice " & _
> > > "FROM tblCalls LEFT JOIN tblDossiers ON tblCalls.DossierID =
> > > tblDossiers.DossierID " & _
> > > "WHERE (Indice = '" & strIndice & "') " & _
> > > "ORDER BY CallID DESC"
> > >
> > > MessageBox.Show("a1")
> > > Dim dtrSql As SqlDataReader
> > > Dim conSql As SqlConnection
> > > conSql = New SqlConnection(strConn)
> > > Dim cmdSql As SqlCommand
> > > MessageBox.Show("a2" & conSql.ConnectionString)
> > > Try
> > > MessageBox.Show("a3")
> > > conSql.Open()
> > > MessageBox.Show("a4")
> > > cmdSql = New SqlCommand(strSql, conSql)
> > > MessageBox.Show("b")
> > > dtrSql = cmdSql.ExecuteReader(CommandBehavior.SingleRow)
> > > MessageBox.Show("c")
> > > dtrSql.Read()
> > > MessageBox.Show("d")
> > > If dtrSql.HasRows Then
> > > MessageBox.Show("e")
> > > strDossierNr = dtrSql.Item("DossierNr").ToString
> > > MessageBox.Show("f")
> > > txtInfo.Text = "DOSSIER: " & strDossierNr & cstDelimit[/color][/color][/color]
&[color=blue]
> _[color=green][color=darkred]
> > > "CARD: " & dtrSql.Item("tdcaNCartphy").ToString &[/color]
> > cstDelimit[color=darkred]
> > > & _
> > > dtrSql.Item("Choice").ToString & cstDelimit & vbCrLf &[/color][/color][/color]
_[color=blue][color=green][color=darkred]
> > > dtrSql.Item("Cl1").ToString & ", " &
> > > dtrSql.Item("Cl2").ToString
> > > MessageBox.Show("g")
> > > If chkAuto.Checked Then
> > > 'Auto-handeling doen
> > > Select Case dtrSql.Item("Auto").ToString
> > > Case "SAVE"
> > > Dim clsVBS As New clsVBScripts
> > > clsVBS.SAVE(strDossierNr)
> > > clsVBS = Nothing
> > >
> > > Case "CONT"
> > > Dim clsVBS As New clsVBScripts
> > > clsVBS.CONT(strDossierNr)
> > > clsVBS = Nothing
> > >
> > > End Select
> > > End If
> > > Else
> > > MessageBox.Show("Failed to Load Call Data", "Call Data
> > > Failure", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
> > > End If
> > >
> > > Catch ex As Exception
> > > ErrorMessage(Me, ex, "Failed to Load Call Data", "Call[/color][/color][/color]
Data[color=blue][color=green][color=darkred]
> > > Failure")
> > > Finally
> > > MessageBox.Show("k")
> > > dtrSql.Close()
> > > MessageBox.Show("k1")
> > > cmdSql.Dispose()
> > > MessageBox.Show("k2")
> > > If conSql.State = ConnectionState.Open Then
> > > MessageBox.Show("l")
> > > conSql.Close()
> > > End If
> > > MessageBox.Show("m")
> > > dtrSql = Nothing
> > > cmdSql = Nothing
> > > conSql = Nothing
> > > MessageBox.Show("n")
> > > End Try
> > >
> > > End Sub
> > >
> > >
> > > I get this messageboxes: a1, a2, a3, than the error, k
> > > So the error seems to happen on the "conSql.Open()"-statement.
> > > Really weird is also that it only shows the "k" of the finally, and[/color][/color][/color]
not[color=blue][color=green]
> > the[color=darkred]
> > > k1, k2, l, m and n... :-(
> > >
> > > And much weirder: I managed to get it working one time again, but the[/color][/color]
> next[color=green][color=darkred]
> > > time it didn't work anymore :-( So it works kind of randomly: 2 times[/color][/color][/color]
it[color=blue][color=green][color=darkred]
> > > worked, +- 15 times it didn't work... :-( Couldn't it be because[/color][/color]
> something[color=green][color=darkred]
> > > on the SQL Server?
> > >
> > > please help :-(
> > >
> > > Pieter
> > >
> > >
> > > "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> > > news:Of78XH9REHA.1396@TK2MSFTNGP12.phx.gbl...
> > > > Ok: some 'funny' results:
> > > >
> > > > I installed JET 4.0 SP7: It worked once (ONCE!!), and afterwarths I[/color][/color]
> got[color=green][color=darkred]
> > > the
> > > > same error... :-(
> > > >
> > > > Than I installed JET 4.0 SP8 and MDAC 2.8: It still doesn't work,[/color][/color][/color]
but[color=blue][color=green]
> > the[color=darkred]
> > > > Error-message is different now:
> > > > Object reference not set to an instance of an object. at
> > > > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> > > isInTransaction)
> > > > at
> > > >
> > >[/color]
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green][color=darkred]
> > > > tionString options, Boolean& isInTransaction)
> > > > at System.Data.SqlClient.SqlConnection.Open()
> > > >
> > > >
> > > > I'm still not able to find out what causes the problem and how to[/color][/color][/color]
find[color=blue]
> a[color=green][color=darkred]
> > > > resolution :-( Any help would really be appreciated!! The weird[/color][/color][/color]
thing[color=blue]
> is[color=green][color=darkred]
> > > > that it only happens on one pc (NT SP6a), on the others I tested it[/color][/color][/color]
(a[color=blue][color=green][color=darkred]
> > > 2000
> > > > and a NT SP6A) it works fine...
> > > >
> > > > Thanks in advance,
> > > >
> > > > Pieter
> > > >
> > > >
> > > >
> > > > "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> > > > news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > I'm having this error in a VB.NET-application at the moment that I
> > > attempt
> > > > > to read data from an SQL Server:
> > > > >
> > > > >
> > > > > The .Net Data SQL Provider (System.Data.SqlClient) requires[/color][/color]
> Microsoft[color=green][color=darkred]
> > > Data
> > > > > Access Components(MDAC) version 2.6 or later. at
> > > > > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> > > > isInTransaction)
> > > > > at
> > > > >
> > > >
> > >[/color]
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green][color=darkred]
> > > > > tionString options, Boolean& isInTransaction)
> > > > > at System.Data.SqlClient.SqlConnection.Open()
> > > > > Failed to Load Call Data Call Data Failure
> > > > >
> > > > >
> > > > > However the MDAC 2.7 is installed! And when I look into the[/color][/color][/color]
registry[color=blue][color=green]
> > it[color=darkred]
> > > is
> > > > > indicated as installed too:
> > > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer =
> > > > > "2.71.9040.2"
> > > > >
> > > > > The .NET Framework is installed (1.1), and it is on a Windows NT[/color][/color][/color]
(Sp[color=blue][color=green]
> > 6a)[color=darkred]
> > > > pc.
> > > > >
> > > > > Does anybody know about thisp roblem? And some solution? Could it[/color][/color][/color]
be[color=blue][color=green][color=darkred]
> > > > because
> > > > > of some restictions (although I do have full Admin rights on the[/color][/color]
> pc).[color=green][color=darkred]
> > > > >
> > > > > I'ts really urgent and bothering me (I have to do a demo in 20[/color]
> > minutes,[color=darkred]
> > > > > hehe).
> > > > >
> > > > > Thanks a lot in advance, any help, hints etc will be really[/color]
> > appreciated![color=darkred]
> > > > >
> > > > > Pieter
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color] | | | | re: "MDAC required" but it's installed...
Hm I wouldn't know: I got the problem only on Windows NT, and because of a
WindowsKeyHook and a Extra-Session object that conflicted...
"Patrick Yan" <pyan@oneshield.com> wrote in message
news:uK3q32oSEHA.3756@TK2MSFTNGP11.phx.gbl...[color=blue]
> Hi, I also have just started to experience the MDAC required messages even
> though I installed 2.7 and then 2.8.
>
> My situation is a bit different though. I was developing on a Windows[/color]
2000[color=blue]
> Server machine with Visual Studio .Net 2002 and then I upgraded the OS to
> Windows Server 2003 and that's when I started to get the error messages.
>
> I can connect using the OracleClient Connection objects but not the
> Oledb.Connection objects?
>
> Is there something special I have to do with Windows Server 2003.
>
> Thanks,
> Patrick
>
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:eE#HScJSEHA.1160@TK2MSFTNGP09.phx.gbl...[color=green]
> > I made a small test-application, and that works all the time (tested it
> > 20-30 times), but the 'real' application works like 20% of the time.
> >
> > My test-application:
> > Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
> > System.EventArgs) Handles Button1.Click
> > Dim strConn As String
> > strConn = "Server=BESQL1;DataBase=VocalcomCetelem;User
> > ID=vocalcomcetelem;Password=vocalcomcetelem;Truste d_Connection=False"
> >
> > Dim strSql As String
> > strSql = "SELECT TOP 1 * " & _
> > "FROM tblCalls " & _
> > "ORDER BY CallID DESC"
> >
> > Dim dtrSql As SqlDataReader
> > Dim conSql As SqlConnection
> > conSql = New SqlConnection(strConn)
> > Dim cmdSql As SqlCommand
> > Try
> > conSql.Open()
> > cmdSql = New SqlCommand(strSql, conSql)
> > dtrSql = cmdSql.ExecuteReader(CommandBehavior.SingleRow)
> > dtrSql.Read()
> > If dtrSql.HasRows Then
> > MessageBox.Show(dtrSql.Item("tdcaNCartphy").ToStri ng)
> > End If
> > Catch ex As Exception
> > MessageBox.Show(ex.Message & ex.StackTrace)
> > End Try
> >
> > End Sub
> >
> >
> > The error's:
> > Like this with MDAC 2.7 installed:
> > The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft[/color][/color]
Data[color=blue][color=green]
> > Access Components(MDAC) version 2.6 or later.
> > at System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> > isInTransaction)
> > at
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green]
> > tionString options, Boolean& isInTransaction)
> > at System.Data.SqlClient.SqlConnection.Open()
> > Or this with MDAC 2.8:
> > Object reference not set to an instance of an object.
> > at System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> > isInTransaction)
> > at
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green]
> > tionString options, Boolean& isInTransaction)
> > at System.Data.SqlClient.SqlConnection.Open()
> >
> >
> > Any idea? :-(
> >
> > "Leo Muller" <leo-m@keshet-i.com> wrote in message
> > news:c9kcps$ohv$1@news2.netvision.net.il...[color=darkred]
> > > Hi,
> > >
> > > Obviously the connection has problems, that's why it can't open it,[/color][/color][/color]
and[color=blue]
> in[color=green][color=darkred]
> > > your "finally" part it can't close it either, since it wasn't opened.
> > >
> > > I think you can isolate the problem by just creating the connection,[/color][/color]
> open[color=green][color=darkred]
> > > and close it. The same will happen then.
> > >
> > > If the connection does work sometimes, then there isn't anything wrong[/color]
> > with[color=darkred]
> > > your application, or MDAC. Rather you may be experiencing a network[/color]
> > problem,[color=darkred]
> > > or a SQL problem.
> > >
> > > use try and catch while opening the connection, and check the error
> > > description and source that it will return.
> > >
> > > Leo
> > >
> > >
> > > "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> > > news:O4AnFR%23REHA.1448@TK2MSFTNGP11.phx.gbl...
> > > > Ok, I modified my source-code a little bit so I can se where it goes
> > > wrong:
> > > >
> > > > This is my function:
> > > >
> > > > Private Sub ShowClientInfo(ByVal strIndice As String)
> > > > If strIndice.Length <= 0 Then
> > > > txtInfo.Text = "No Identification"
> > > > Exit Sub
> > > > End If
> > > >
> > > > Dim strSql As String
> > > > strSql = "SELECT TOP 1 (tdprNFoy + tdprNCCD) AS DossierNr,
> > > > (tcliLSigl1 + ' ' + tcliLNomPren1) AS Cl1, " & _
> > > > "(tcliLSigl2 + ' ' + tcliLNomPren2) AS Cl2, tdcaNCartphy,[/color][/color]
> Auto,[color=green][color=darkred]
> > > > Choice " & _
> > > > "FROM tblCalls LEFT JOIN tblDossiers ON tblCalls.DossierID =
> > > > tblDossiers.DossierID " & _
> > > > "WHERE (Indice = '" & strIndice & "') " & _
> > > > "ORDER BY CallID DESC"
> > > >
> > > > MessageBox.Show("a1")
> > > > Dim dtrSql As SqlDataReader
> > > > Dim conSql As SqlConnection
> > > > conSql = New SqlConnection(strConn)
> > > > Dim cmdSql As SqlCommand
> > > > MessageBox.Show("a2" & conSql.ConnectionString)
> > > > Try
> > > > MessageBox.Show("a3")
> > > > conSql.Open()
> > > > MessageBox.Show("a4")
> > > > cmdSql = New SqlCommand(strSql, conSql)
> > > > MessageBox.Show("b")
> > > > dtrSql = cmdSql.ExecuteReader(CommandBehavior.SingleRow)
> > > > MessageBox.Show("c")
> > > > dtrSql.Read()
> > > > MessageBox.Show("d")
> > > > If dtrSql.HasRows Then
> > > > MessageBox.Show("e")
> > > > strDossierNr = dtrSql.Item("DossierNr").ToString
> > > > MessageBox.Show("f")
> > > > txtInfo.Text = "DOSSIER: " & strDossierNr &[/color][/color][/color]
cstDelimit[color=blue]
> &[color=green]
> > _[color=darkred]
> > > > "CARD: " & dtrSql.Item("tdcaNCartphy").ToString &
> > > cstDelimit
> > > > & _
> > > > dtrSql.Item("Choice").ToString & cstDelimit & vbCrLf[/color][/color][/color]
&[color=blue]
> _[color=green][color=darkred]
> > > > dtrSql.Item("Cl1").ToString & ", " &
> > > > dtrSql.Item("Cl2").ToString
> > > > MessageBox.Show("g")
> > > > If chkAuto.Checked Then
> > > > 'Auto-handeling doen
> > > > Select Case dtrSql.Item("Auto").ToString
> > > > Case "SAVE"
> > > > Dim clsVBS As New clsVBScripts
> > > > clsVBS.SAVE(strDossierNr)
> > > > clsVBS = Nothing
> > > >
> > > > Case "CONT"
> > > > Dim clsVBS As New clsVBScripts
> > > > clsVBS.CONT(strDossierNr)
> > > > clsVBS = Nothing
> > > >
> > > > End Select
> > > > End If
> > > > Else
> > > > MessageBox.Show("Failed to Load Call Data", "Call[/color][/color][/color]
Data[color=blue][color=green][color=darkred]
> > > > Failure", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
> > > > End If
> > > >
> > > > Catch ex As Exception
> > > > ErrorMessage(Me, ex, "Failed to Load Call Data", "Call[/color][/color]
> Data[color=green][color=darkred]
> > > > Failure")
> > > > Finally
> > > > MessageBox.Show("k")
> > > > dtrSql.Close()
> > > > MessageBox.Show("k1")
> > > > cmdSql.Dispose()
> > > > MessageBox.Show("k2")
> > > > If conSql.State = ConnectionState.Open Then
> > > > MessageBox.Show("l")
> > > > conSql.Close()
> > > > End If
> > > > MessageBox.Show("m")
> > > > dtrSql = Nothing
> > > > cmdSql = Nothing
> > > > conSql = Nothing
> > > > MessageBox.Show("n")
> > > > End Try
> > > >
> > > > End Sub
> > > >
> > > >
> > > > I get this messageboxes: a1, a2, a3, than the error, k
> > > > So the error seems to happen on the "conSql.Open()"-statement.
> > > > Really weird is also that it only shows the "k" of the finally, and[/color][/color]
> not[color=green][color=darkred]
> > > the
> > > > k1, k2, l, m and n... :-(
> > > >
> > > > And much weirder: I managed to get it working one time again, but[/color][/color][/color]
the[color=blue][color=green]
> > next[color=darkred]
> > > > time it didn't work anymore :-( So it works kind of randomly: 2[/color][/color][/color]
times[color=blue]
> it[color=green][color=darkred]
> > > > worked, +- 15 times it didn't work... :-( Couldn't it be because[/color]
> > something[color=darkred]
> > > > on the SQL Server?
> > > >
> > > > please help :-(
> > > >
> > > > Pieter
> > > >
> > > >
> > > > "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> > > > news:Of78XH9REHA.1396@TK2MSFTNGP12.phx.gbl...
> > > > > Ok: some 'funny' results:
> > > > >
> > > > > I installed JET 4.0 SP7: It worked once (ONCE!!), and afterwarths[/color][/color][/color]
I[color=blue][color=green]
> > got[color=darkred]
> > > > the
> > > > > same error... :-(
> > > > >
> > > > > Than I installed JET 4.0 SP8 and MDAC 2.8: It still doesn't work,[/color][/color]
> but[color=green][color=darkred]
> > > the
> > > > > Error-message is different now:
> > > > > Object reference not set to an instance of an object. at
> > > > > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> > > > isInTransaction)
> > > > > at
> > > > >
> > > >
> > >[/color]
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green][color=darkred]
> > > > > tionString options, Boolean& isInTransaction)
> > > > > at System.Data.SqlClient.SqlConnection.Open()
> > > > >
> > > > >
> > > > > I'm still not able to find out what causes the problem and how to[/color][/color]
> find[color=green]
> > a[color=darkred]
> > > > > resolution :-( Any help would really be appreciated!! The weird[/color][/color]
> thing[color=green]
> > is[color=darkred]
> > > > > that it only happens on one pc (NT SP6a), on the others I tested[/color][/color][/color]
it[color=blue]
> (a[color=green][color=darkred]
> > > > 2000
> > > > > and a NT SP6A) it works fine...
> > > > >
> > > > > Thanks in advance,
> > > > >
> > > > > Pieter
> > > > >
> > > > >
> > > > >
> > > > > "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> > > > > news:%23R5BWv6REHA.3476@tk2msftngp13.phx.gbl...
> > > > > > Hi,
> > > > > >
> > > > > > I'm having this error in a VB.NET-application at the moment that[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> > > > attempt
> > > > > > to read data from an SQL Server:
> > > > > >
> > > > > >
> > > > > > The .Net Data SQL Provider (System.Data.SqlClient) requires[/color]
> > Microsoft[color=darkred]
> > > > Data
> > > > > > Access Components(MDAC) version 2.6 or later. at
> > > > > > System.Data.SqlClient.ConnectionPool.GetConnection (Boolean&
> > > > > isInTransaction)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >[/color]
> >[/color]
>[/color]
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec[color=blue][color=green][color=darkred]
> > > > > > tionString options, Boolean& isInTransaction)
> > > > > > at System.Data.SqlClient.SqlConnection.Open()
> > > > > > Failed to Load Call Data Call Data Failure
> > > > > >
> > > > > >
> > > > > > However the MDAC 2.7 is installed! And when I look into the[/color][/color]
> registry[color=green][color=darkred]
> > > it
> > > > is
> > > > > > indicated as installed too:
> > > > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess\F ullInstallVer[/color][/color][/color]
=[color=blue][color=green][color=darkred]
> > > > > > "2.71.9040.2"
> > > > > >
> > > > > > The .NET Framework is installed (1.1), and it is on a Windows NT[/color][/color]
> (Sp[color=green][color=darkred]
> > > 6a)
> > > > > pc.
> > > > > >
> > > > > > Does anybody know about thisp roblem? And some solution? Could[/color][/color][/color]
it[color=blue]
> be[color=green][color=darkred]
> > > > > because
> > > > > > of some restictions (although I do have full Admin rights on the[/color]
> > pc).[color=darkred]
> > > > > >
> > > > > > I'ts really urgent and bothering me (I have to do a demo in 20
> > > minutes,
> > > > > > hehe).
> > > > > >
> > > > > > Thanks a lot in advance, any help, hints etc will be really
> > > appreciated!
> > > > > >
> > > > > > Pieter
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color] |  | Similar .NET Framework bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,501 network members.
|