Click here to Skip to main content
15,887,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rotate images with links Pin
Amalarajan24-Apr-06 0:18
Amalarajan24-Apr-06 0:18 
AnswerRe: Rotate images with links Pin
sudharsong23-Apr-06 21:33
sudharsong23-Apr-06 21:33 
QuestionSynchronization with C# Pin
Lilla8823-Apr-06 2:37
Lilla8823-Apr-06 2:37 
AnswerRe: Synchronization with C# Pin
Graham Nimbley24-Apr-06 13:39
Graham Nimbley24-Apr-06 13:39 
QuestionGenerate documentation Pin
JensB23-Apr-06 1:40
JensB23-Apr-06 1:40 
AnswerRe: Generate documentation Pin
CWIZO23-Apr-06 2:54
CWIZO23-Apr-06 2:54 
AnswerRe: Generate documentation Pin
Graham Nimbley24-Apr-06 13:43
Graham Nimbley24-Apr-06 13:43 
QuestionGetting error: There is already an open DataReader associated with this Command which must be closed first. Pin
emran83423-Apr-06 0:21
emran83423-Apr-06 0:21 
Hello,
Thanks for your time to read my request for a help. I developed my windows application with C#, which has many background workers working at the same time, opening and closing sql databases, modifying sql tables etc. Now, very often I get this error message, " There is already an open DataReader associated with this Command which must be closed first.". I dont know why its happenning sometimes and sometimes not. Is that the reason one thred and another thread conflicting each other when they try to read or modify same sql database ? And sometimes, I get some weired error saying "in order to execute the sqlcommand, connection must be open. ", And I dont see any reason why connection is getting closed before that sqlcommand execution. Now I had to place if(myConn.State == ConnectionState.Close) myConn.Open() ; before every sqlcommand. Even after that I am getting same error sometimes. Can anyone please give me some clue to solve and seal this problem permanently.

Thanks and regards
emran
AnswerRe: Getting error: There is already an open DataReader associated with this Command which must be closed first. Pin
Guffa23-Apr-06 0:56
Guffa23-Apr-06 0:56 
Answerit's a ADO.NET limitation ! Pin
e_akhras23-Apr-06 5:09
e_akhras23-Apr-06 5:09 
AnswerRe: it's a ADO.NET limitation ! Pin
Guffa23-Apr-06 5:38
Guffa23-Apr-06 5:38 
GeneralRe: it's a ADO.NET limitation ! Pin
emran83423-Apr-06 8:42
emran83423-Apr-06 8:42 
GeneralRe: it's a ADO.NET limitation ! Pin
e_akhras24-Apr-06 1:51
e_akhras24-Apr-06 1:51 
GeneralRe: it's a ADO.NET limitation ! Pin
emran83423-Apr-06 8:50
emran83423-Apr-06 8:50 
Generaltwo articles Pin
e_akhras24-Apr-06 2:27
e_akhras24-Apr-06 2:27 
Questionwin application datagrid editting. Pin
moomoori22-Apr-06 22:38
moomoori22-Apr-06 22:38 
Questionoperator overloading in C# Pin
pankajgarg1222-Apr-06 21:50
pankajgarg1222-Apr-06 21:50 
AnswerRe: operator overloading in C# Pin
Guffa22-Apr-06 22:21
Guffa22-Apr-06 22:21 
Questionunmanaged code Pin
pankajgarg1222-Apr-06 21:48
pankajgarg1222-Apr-06 21:48 
AnswerRe: unmanaged code Pin
CWIZO22-Apr-06 23:45
CWIZO22-Apr-06 23:45 
AnswerRe: unmanaged code Pin
Zakaria Bin Abdur Rouf25-Apr-06 3:44
Zakaria Bin Abdur Rouf25-Apr-06 3:44 
QuestionDynamically accessing web service Pin
DotNet novice22-Apr-06 20:33
DotNet novice22-Apr-06 20:33 
AnswerRe: Dynamically accessing web service Pin
Guffa22-Apr-06 21:26
Guffa22-Apr-06 21:26 
GeneralRe: Dynamically accessing web service Pin
DotNet novice23-Apr-06 4:02
DotNet novice23-Apr-06 4:02 
AnswerRe: Dynamically accessing web service Pin
Guffa25-Apr-06 4:14
Guffa25-Apr-06 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.