21-12-13, 07:30 AM
You should close the connection after you're done using it in the method, not before. If the Open method still causes the exception, after moving the call to the Close method, you have a problem with your connection string.
Maybe you can show us the connectionstring and all of the data access code you use
Or try this



Maybe you can show us the connectionstring and all of the data access code you use
Or try this
كود :
If newConnection.State = ConnectionState.Open Then newConnection.Close()
newConnection.Open()


{ يَرْفَعِ اللَّهُ الَّذِينَ آمَنُوا مِنكُمْ وَالَّذِينَ أُوتُوا الْعِلْمَ دَرَجَاتٍ }
" Mohamed M. Bedair - " Abu Anas
Genius Live , Egypt

