My Error
An exception of type 'System.InvalidOperationException' occurred in System.Data.dll but was not handled in user code
Additional information: The connection was not closed. The connection's current state is open.
My Error
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaish MathewsRank #225 · 11K reputationPosted Aug 5, 2018, 9:54 PM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 5, 2018, 9:47 PM EDT
Replace the line
myconn.Open();
to