Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

KB928365 and 'Internal .Net Framework Data Provider error 6' issue with .NET 2.0 on databases with failover partner

447 views
Skip to first unread message

Carlos Mendonça

unread,
Aug 14, 2007, 6:06:52 PM8/14/07
to
Hello,

I work at a Hosting Company in Brazil and we have been experiencing issues
with managed applications using .NET Framework 2.0 that connect to SQL
Server 2005 databases with a failover partner. These issues started
happening after we have applied KB928365
(http://support.microsoft.com/KB/928365).

The issue is an System.InvalidOperationException that is thrown every once
in a while when connecting to the databases. The message is 'Internal .Net
Framework Data Provider error 6.'. Both Operating System (Windows 2003) and
databases (SQL Server 2005) are up to date, including all Security Updates
and Service Packs.

Although not many use failover partners to be able to reproduce the issue,
we have identified people with similar problems while searching for the
exception message in the major search engines. Additionally, the same
problem has been reported at 'microsoft.public.dotnet.framework.adonet', but
it has been suggested that KB928365 should be removed, which is not an
option for us considering the security concerns involved.

I am posting in the newsgroups in hope of reaching someone from the .NET
team to report this issue. I think it may be a bug, but it could also be
some configuration requirement that KB928365 introduced. In either case, it
is an issue that affect big databases and I believe that we should pay
special attention to the case.

I am not familiar with the process of reporting an issue to the .NET and/or
SQL Server teams and I would appreciate if someone could give me a hint.

I thank you in advance.

Carlos Mendonça


Kevin Burton

unread,
Sep 10, 2007, 1:36:00 AM9/10/07
to
This probably occurred a while back for you. Were you able to see any
resolution? I am seeing the same symptoms as you.

Thank you.

Kevin Burton

Ian Hannah

unread,
Sep 10, 2007, 11:58:04 AM9/10/07
to

--
Ian H


"Carlos Mendonça" wrote:

Hi Carlos,

I am experiencing this very same problem. Have you had any luck working out
what it is?

Thanks

Ian

Carlos Mendonça

unread,
Sep 26, 2007, 10:55:34 AM9/26/07
to
Unfortunately we have still not found any solution to the problem. One thing
I would suggest, though, would be to set up Counter Logs in the client, the
server and the database server to trace the following objects:

SQL Server: General Statistics Login/sec and Logout/sec
SQL Server: General Statistics User Connections
.NET CLR Data : SqlClient: Current # of pooled and non pooled connections
.NET CLR Data : SqlClient: Current # pooled connections
.NET CLR Data : SqlClient: Current # connection pools
.NET CLR Data : SqlClient: Peak # pooled connections
.NET CLR Data : SqlClient: Total # failed connects

The reason for this is that if you analyze the stack trace of the exception,
you will see that it is being raised in the CreateObject method right after
it checks whether the connection can be pooled (use a disassembler such as
Reflector to open the
System.Data.ProviderBase.DbConnectionPool.CreateObject() method @
System.Data.dll). In other words, the KB928365 *MAY* have changed number of
default pools or the way they are allocated or whatever and by tracing them,
it may be possible to see if fine tuning the connection string could solve
the problem we're experiencing.

Of course, Microsoft could always shed a light on this issue since more and
more people are finding out about it...

Yours,

Carlos Mendonça

"Ian Hannah" <IanH...@discussions.microsoft.com> wrote in message
news:35DF7C2A-62F9-489E...@microsoft.com...

Coombes@discussions.microsoft.com Jason Coombes

unread,
Sep 28, 2007, 5:09:02 AM9/28/07
to
We have been experiencing the exact same issue and currently have an open
support ticket with Microsoft to try and resolve the problem.

Interestingly, if you check the application event logs on the failover sql
server you should see an event like this (at the exact time of the .Net error
6):

Event Type: Failure Audit
Event Source: MSSQLSERVER
Event Category: (4)
Event ID: 18456
Date: 4/09/2007
Time: 1:59:39 PM

The event log entry also reports the client IP address and the username that
tried to connect but for security reasons I'm not including that information
here.

We have 4 installations that use database mirroring and all of them are
experiencing this issue. I don't believe we have installed KB928365 due to
strict testing policy on windows updates prior to rollout on production
servers.

Jason.

Carlos Mendonça

unread,
Oct 1, 2007, 11:26:07 AM10/1/07
to
Dear Jason,

We too confirm that the event is being reported in the Application log in
the exact same way you saw it. It doesn't say much more regarding the
problem, though. What has been Microsoft's position regarding this issue so
far? Has there been any progress whatsoever in the ticket you have opened?

Thanks,

Carlos Mendonça

"Jason Coombes" <Jason Coo...@discussions.microsoft.com> wrote in message
news:93115343-E17E-452B...@microsoft.com...

Jason Coombes

unread,
Oct 1, 2007, 11:47:02 AM10/1/07
to
Hi Carlos,

The person handling the support ticket has been in daily contact with me
(experience of MS tech support has been excellent) but nothing to report so
far. I did find an application which had accidentally been configured so
that the 2nd server was being connected to first instead of as a failover.
This has made it harder for me to prove my case but now that has been
resolved connections are still hitting the 2nd db server.

Am expecting another call back tomorrow when we will review the logs again
and see if any further connections have been rejected.

Jason.

"Carlos Mendonça" wrote:

> ..Net

Andy

unread,
Oct 5, 2007, 2:39:02 PM10/5/07
to
We are also experiencing the exact same issue. Please let us know the
resolution. Many Many thanks...!

Cheers
Andy

alexey.v...@gmail.com

unread,
Oct 16, 2007, 12:15:24 PM10/16/07
to
On Oct 5, 11:39 am, Andy <A...@discussions.microsoft.com> wrote:
> We are also experiencing the exact same issue. Please let us know the
> resolution. Many Many thanks...!
>
> Cheers
> Andy
>
> "Jason Coombes" wrote:
> > Hi Carlos,
>
> > The person handling the support ticket has been in daily contact with me
> > (experience of MS tech support has been excellent) but nothing to report so
> > far. I did find an application which had accidentally been configured so
> > that the 2nd server was being connected to first instead of as a failover.
> > This has made it harder for me to prove my case but now that has been
> > resolved connections are still hitting the 2nd db server.
>
> > Am expecting another call back tomorrow when we will review the logs again
> > and see if any further connections have been rejected.
>
> > Jason.
>
> > "Carlos Mendonça" wrote:
>
> > > Dear Jason,
>
> > > We too confirm that the event is being reported in the Application log in
> > > the exact same way you saw it. It doesn't say much more regarding the
> > > problem, though. What has been Microsoft's position regarding this issue so
> > > far? Has there been any progress whatsoever in the ticket you have opened?
>
> > > Thanks,
>
> > > Carlos Mendonça
>
> > > "Jason Coombes" <Jason Coom...@discussions.microsoft.com> wrote in message

I had the same issue, and found a fix for it. In my case i was running
the app on the same server as the principal database. Application
referenced to itself via hostname and caused an issue, unless you
specify an IP of machine instead, and/or move the app to a completely
different server.

Carlos Mendonça

unread,
Oct 17, 2007, 1:25:18 PM10/17/07
to
That's not our case. Thanks for the tip, though.

Carlos Mendonça

<alexey.v...@gmail.com> wrote in message
news:1192551324.0...@e34g2000pro.googlegroups.com...

Andy

unread,
Oct 17, 2007, 3:26:03 PM10/17/07
to
Our app server and database servers are on different boxes. We do have the
failover setup on the database though.

Anyone has the solution?

"alexey.v...@gmail.com" wrote:

> > > > > server you should see an event like this (at the exact time of the ..Net

Carlos Mendonça

unread,
Nov 9, 2007, 9:08:17 AM11/9/07
to
I'm posting the stack trace we've captured. Please reply below if you have
captured something different.

System.InvalidOperationException: Internal .Net Framework Data Provider
error 6.
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection
owningObject)
at
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection
owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
at
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
owningConnection)
at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at (..) <-- our propetary code begins here

The error code comes from the System.Data.Common.ADP.InternalErrorCode
enumerator (value NewObjectCannotBePooled = 6).

Unfortunately, this problem still has no solution and Microsoft is yet to
disclose some information regarding this issue. Up until now, as far as I
know, they haven't acknowledged nor identified the error.

Carlos

"Carlos Mendonça" <carlos....@locaweb.com.br> wrote in message
news:%23vZY99r...@TK2MSFTNGP03.phx.gbl...

Kent Tegels

unread,
Nov 9, 2007, 9:21:07 AM11/9/07
to
Hello Carlos,

Can you post the connection string being used? Please sanitize it for userID
and password, of course. :)

Thanks,
Kent Tegels
http://staff.develop.com/ktegels/


Mark

unread,
Nov 19, 2007, 11:34:02 AM11/19/07
to
Looks like MS issued a hot fix for this on the 9th.

http://support.microsoft.com/kb/944099

Carlos Mendonça

unread,
Nov 29, 2007, 12:44:45 PM11/29/07
to
Great news! I will ask for some testing and post the results later.

Thanks a lot,

Carlos

"Mark" <Ma...@discussions.microsoft.com> wrote in message
news:93BE8F7C-A008-4096...@microsoft.com...

Hank Nussbacher

unread,
Dec 2, 2007, 1:17:32 AM12/2/07
to
The fix is not publically available. You have to get it from MS directly.

-Hank


In article <#VFla#qMIHA...@TK2MSFTNGP02.phx.gbl>, "Carlos Mendonça"

<carlos....@locaweb.com.br> wrote:
>Great news! I will ask for some testing and post the results later.
>
>Thanks a lot,
>
>Carlos
>
>"Mark" <Ma...@discussions.microsoft.com> wrote in message
>news:93BE8F7C-A008-4096...@microsoft.com...
>> Looks like MS issued a hot fix for this on the 9th.
>>
>> http://support.microsoft.com/kb/944099
>>
>>
>> "Carlos Mendonça" wrote:
>>
>> > Hello,
>> >
>> > I work at a Hosting Company in Brazil and we have been experiencing
>issues
>> > with managed applications using .NET Framework 2.0 that connect to SQL
>> > Server 2005 databases with a failover partner. These issues started
>> > happening after we have applied KB928365
>> > (http://support.microsoft.com/KB/928365).
>> >
>> > The issue is an System.InvalidOperationException that is thrown every
>once
>> > in a while when connecting to the databases. The message is 'Internal

>..Net

treg

unread,
Dec 5, 2007, 3:17:03 AM12/5/07
to
Did anyone already receive and test this hotfix ?

I also noticed the kb944099 is talking about version 2.0.50727.948 of
system.data.dll
Today I received Microsoft .NET Framework 2.0 SP1 on Windows update, this
Service pack contains version 2.0.50727.1433 of system.dat.dll and is
superseding KB928365. So this sould also fix this problem.

Anyone already tried 1 of this solutions ?

Kind regrards
Tom

Carlos Mendonça

unread,
Dec 21, 2007, 4:05:53 PM12/21/07
to
We did and we confirm it does work. MS indeed solved the problem.

Regards,

Carlos Mendonça

"treg" <tr...@discussions.microsoft.com> wrote in message
news:61E93D99-B384-43CB...@microsoft.com...

Val

unread,
Mar 27, 2008, 2:51:02 PM3/27/08
to
We are seeing this problem almost once or twice per hour. We also have SP1
and of course could not install the hot fix as it fixes pre-SP1 code. Can
someone from MS please advise. We need a solution.

Thank you
Val

David Brazier

unread,
Mar 27, 2008, 3:28:00 PM3/27/08
to
We raised this with MS PSS. They confirmed it was not fixed in SP1 and they
gave us the hotfix, which appears to have fixed it.

Chris Wood

unread,
Apr 2, 2008, 10:06:48 AM4/2/08
to
David,

What was the hotfix? Was it 928365?

Thanks

Chris

"David Brazier" <DavidB...@discussions.microsoft.com> wrote in message
news:D9DF446F-68FF-47D3...@microsoft.com...

David Brazier

unread,
Apr 2, 2008, 4:38:00 PM4/2/08
to
It was the hotfix described in KB 944099.

http://support.microsoft.com/kb/944099

Chris Wood

unread,
Apr 2, 2008, 5:21:20 PM4/2/08
to
So David what is the new version of this DLL? 948 or 1433?

Chris

"David Brazier" <DavidB...@discussions.microsoft.com> wrote in message

news:EB5872A8-2068-417A...@microsoft.com...

David Brazier

unread,
Apr 2, 2008, 5:40:03 PM4/2/08
to
Our System.Data.dll is now version 2.0.50727.1813 after the hotfix. Looking
at the KB article again, I see that says the fixed version is 2.0.50727.948.
But that was pre-SP1 and I am guessing that they had to apply a new fix
post-SP1, as it didn't make it into SP1 itself.

Chris Wood

unread,
Apr 3, 2008, 10:21:10 AM4/3/08
to
David,

SO MS provided the fix when you reported the problem. Maybe they have a post
SP1 version and have not updated the KB article.

Chris

"David Brazier" <DavidB...@discussions.microsoft.com> wrote in message

news:8AB78D88-26DD-4449...@microsoft.com...

David Brazier

unread,
Apr 3, 2008, 10:37:02 AM4/3/08
to
Yes, we reported it to MS support & they provided the hotfix. You're right,
the KB article should have been updated or replaced post-SP1.

Jojo...@gmail.com

unread,
Apr 15, 2008, 12:05:01 PM4/15/08
to
0 new messages