[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

asp.NET + Datagrid Error

Asked by dkilby in .NET

Tags: busy, currently, sqlcommand, datagrid

Every now and then i get an error from the application on the production server.  I am unable to re create it on the development server so i can not find out why it is doing it.  I have to restart IIS before the application will run again, otherwise it is completely frozen and no one can access the web page.  Here one of the errors that is emailed to me.

Any help would be great. I am completely lost on where to look, and the application is causing major problems.

System.InvalidOperationException: The SqlCommand is currently busy Open, Fetching.
   at System.Data.SqlClient.SqlCommand.set_Connection(SqlConnection value)
   at Agent_Email.read_email.Page_Load(Object sender, EventArgs e)<br/> <strong>Running query:</strong><br/> SELECT AGENT_EMAIL_ID, AGENTID, EMAIL_DATE, EMAIL_SUBJECT, EMAIL_MESSAGE, EMAIL_FROM FROM T_AGENT_EMAIL WHERE AGENT_EMAIL_ID = '4437'<br/>


<strong>Function <em>GetTableData</em> generated an error:</strong><br/>System.InvalidOperationException: There is already an open DataReader associated with this Connection which must be closed first.
   at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean executing)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
   at Agent_Email._default.GetTableData()<br/>
<strong>Running query:</strong><br/>
SELECT AGENT_EMAIL_ID, AGENTID, EMAIL_DATE, EMAIL_FROM, EMAIL_SUBJECT, EMAIL_READ FROM T_AGENT_EMAIL WHERE AGENTID = '90NG' ORDER BY Email_Date<br/>
[+][-]04/02/04 06:53 PM, ID: 10746053Accepted Solution

Your question has an Asker Certified™ answer! dkilby verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zone: .NET
Tags: busy, currently, sqlcommand, datagrid
Sign Up Now!
Solution Provided By: dfiala13
Participating Experts: 1
Solution Grade: A
 
[+][-]04/02/04 06:28 PM, ID: 10746001Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/02/04 06:39 PM, ID: 10746026Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/02/04 06:42 PM, ID: 10746033Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/02/04 06:44 PM, ID: 10746038Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/02/04 07:07 PM, ID: 10746087Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/02/04 07:19 PM, ID: 10746116Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/02/04 07:25 PM, ID: 10746131Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/02/04 07:27 PM, ID: 10746142Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20100608-EE-VQP-165