473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Internal connection fatal error

We are running a asp.net site, we are using a tiered architecture with the data class looking like

Function MyDataReader(ByVal stylemainid As Int32, ByVal letter As String) As SqlDataReade
Dim myConnection As SqlConnection = New SqlConnection(ConfigurationSettings.AppSettings("c onnectionString")
myConnection.Open(
Dim myCommand As SqlCommand = New SqlCommand("", myConnection
myCommand.CommandType = CommandType.StoredProcedur
Dim styleparam As SqlParameter = New SqlParameter("@stylemainid", SqlDbType.Int
styleparam.Value = stylemaini
myCommand.Parameters.Add(styleparam
Dim styleparam2 As SqlParameter = New SqlParameter("@letter", SqlDbType.Char
styleparam2.Value = lette
myCommand.Parameters.Add(styleparam2
Return myCommand.ExecuteReader(CommandBehavior.CloseConne ction
End Functio

The problem we have it intermitten errors from the try, catch block and they report:

System.InvalidOperationException: Internal connection fatal error
at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream
at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior
at vs2.MyDataReader.RunASQLStatement_ReturnReader(Str ing sql
at vs2.icart.AddTuneToCart(
at vs2.icart.Page_Load(Object sender, EventArgs e

We have tried everything, even rewritten the data access, basically we have a test page the refreshes every 30 seconds and re-reads a table and sure enough it will just work then suddenly display the above errors. please help.
Nov 18 '05 #1
1 5931
You're probably doing this already, but I wanted to check whether you are
closing your datareader appropriately after using it.

CommandBehavior.CloseConnection closes the Connection object when the
associated DataReader object is closed. Is it possible that you are running
out of connections? Can you monitor the connection count?

"m.Ward" <ma**@vinylsearcher.com> wrote in message
news:C0**********************************@microsof t.com...
We are running a asp.net site, we are using a tiered architecture with the
data class looking like:

Function MyDataReader(ByVal stylemainid As Int32, ByVal letter As
String) As SqlDataReader
Dim myConnection As SqlConnection = New
SqlConnection(ConfigurationSettings.AppSettings("c onnectionString"))
myConnection.Open()
Dim myCommand As SqlCommand = New SqlCommand("", myConnection)
myCommand.CommandType = CommandType.StoredProcedure
Dim styleparam As SqlParameter = New SqlParameter("@stylemainid",
SqlDbType.Int)
styleparam.Value = stylemainid
myCommand.Parameters.Add(styleparam)
Dim styleparam2 As SqlParameter = New SqlParameter("@letter",
SqlDbType.Char)
styleparam2.Value = letter
myCommand.Parameters.Add(styleparam2)
Return myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
End Function

The problem we have it intermitten errors from the try, catch block and
they report:

System.InvalidOperationException: Internal connection fatal error.
at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior
behavior)
at vs2.MyDataReader.RunASQLStatement_ReturnReader(Str ing sql)
at vs2.icart.AddTuneToCart()
at vs2.icart.Page_Load(Object sender, EventArgs e)

We have tried everything, even rewritten the data access, basically we
have a test page the refreshes every 30 seconds and re-reads a table and
sure enough it will just work then suddenly display the above errors.
please help.


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: David Lack | last post by:
Hi, I recently installed a 60-day trial of .NET 2003 on my development system. I made tests with previous personal projects (which compiled ok with VC6) and some open source files, and keep...
3
by: Jacob Bensabat | last post by:
Hi I am trying to do the following template <class X> class CA { public: X m_a; X m_b; X Get(X& a,X& b)
10
by: PufferFish | last post by:
Hi folks, I hope that this is the correct group for these things, apologies if not. I've got a strange compiler error. It appears to be similar to the issue described in knowledgebase...
2
by: Itjalve | last post by:
This gives me a fatal error. I'm using .NET VC7.1 and made a win32 consol app, I have no problems with VC6. Debug build. I have removed nearly all my code this is whats left. From the beginning...
0
by: May | last post by:
Hello, We got this error (Internal connection fatal error) from our application and at the same we got "server application unavailable" error on the browser. I looked at the line that was...
1
by: BobPitbull | last post by:
When doing a "Whole Program Optimization" release build, I get the following error during LINK:- Searching \main\Binaries\lib\pc_retail\AAALibs.lib: LINK : fatal error LNK1000: Internal error...
0
by: =?Utf-8?B?cGF0cmlja2RyZA==?= | last post by:
Hi guys! My newly built website has just recently went online, but sometimes I face errors (randomly) like these: System.IndexOutOfRangeException: There is no row at position 0....
1
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a...
1
by: Anonymous | last post by:
My code has suddenly stopped compiling after some refactoring I carried out last week. I am using VC8 on W2K professional I get the following cryptic error: Error 77 fatal error C1001: An...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.