Click here to Skip to main content
15,918,049 members
Home / Discussions / C#
   

C#

 
QuestionUnhandled Exception: System.InvalidOperationException Pin
sasire1823-Jan-06 2:15
sasire1823-Jan-06 2:15 
hi When I first executed the program it gave me Table inserted successfully and below the error
Unhandled Exception: System.InvalidOperationException: ExecuteNonQuery requires
an open and available Connection. The connection's current state is Closed.
   at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean ex
ecuting)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Examples.Class1.Main() in c:\documents and settings\sasi\my documents\
visual studio projects\examples\class1.cs:line 34
Press any key to continue


After making changes it again me the error connection is aready opened and tables are already existed in the database so i removed the previous changes and deleted the tables from the database .At present I am getting the below error which i cant resolved it.
Cannot drop the table 'emplo', because it does not exist in the system catalog.
Press any key to continue

Please can anyone help me in this !!

sasi
Answer[Message Deleted] Pin
sathish s23-Jan-06 2:22
sathish s23-Jan-06 2:22 
GeneralRe: Unhandled Exception: System.InvalidOperationException Pin
sasire1823-Jan-06 2:37
sasire1823-Jan-06 2:37 
GeneralRe: Cannot delete Table Pin
Nobia16-Jun-09 16:49
Nobia16-Jun-09 16:49 
Questionchanging the backcolor of datagrid row Pin
steve1_rm200023-Jan-06 2:14
steve1_rm200023-Jan-06 2:14 
AnswerRe: changing the backcolor of datagrid row Pin
tarasn23-Jan-06 4:10
tarasn23-Jan-06 4:10 
QuestionConvert Object Pin
papa198023-Jan-06 2:07
papa198023-Jan-06 2:07 
AnswerRe: Convert Object Pin
User 665823-Jan-06 2:22
User 665823-Jan-06 2:22 
AnswerRe: Convert Object Pin
sathish s23-Jan-06 2:25
sathish s23-Jan-06 2:25 
GeneralRe: Convert Object Pin
papa198023-Jan-06 4:26
papa198023-Jan-06 4:26 
QuestionVisual Inheritance, and Default Property Values Pin
big_trev23-Jan-06 2:05
big_trev23-Jan-06 2:05 
AnswerRe: Visual Inheritance, and Default Property Values Pin
tarasn23-Jan-06 3:57
tarasn23-Jan-06 3:57 
GeneralRe: Visual Inheritance, and Default Property Values Pin
big_trev23-Jan-06 7:54
big_trev23-Jan-06 7:54 
QuestionHow do I retrieve all my webPages + web services in .NET framework 2.0? Pin
Ronen Tidhar23-Jan-06 2:00
Ronen Tidhar23-Jan-06 2:00 
QuestionLCD Pin
sianatia23-Jan-06 1:41
sianatia23-Jan-06 1:41 
QuestionHow to call a function... Pin
Soundman32.223-Jan-06 1:17
Soundman32.223-Jan-06 1:17 
AnswerRe: How to call a function... Pin
AB777123-Jan-06 2:01
AB777123-Jan-06 2:01 
AnswerRe: How to call a function... Pin
Phil J Pearson23-Jan-06 2:20
Phil J Pearson23-Jan-06 2:20 
Questionsingle commands for DotMatrixPrinter Pin
softmusic23-Jan-06 0:58
softmusic23-Jan-06 0:58 
AnswerRe: single commands for DotMatrixPrinter Pin
Dave Kreskowiak23-Jan-06 6:11
mveDave Kreskowiak23-Jan-06 6:11 
GeneralRe: single commands for DotMatrixPrinter Pin
softmusic23-Jan-06 7:12
softmusic23-Jan-06 7:12 
GeneralRe: single commands for DotMatrixPrinter Pin
Dave Kreskowiak23-Jan-06 13:23
mveDave Kreskowiak23-Jan-06 13:23 
QuestionMIDI programing in c# Pin
softmusic23-Jan-06 0:52
softmusic23-Jan-06 0:52 
QuestionEditor Color Pin
peppepinna23-Jan-06 0:33
peppepinna23-Jan-06 0:33 
Questiononclick event not triggering ! Pin
nitya_arysys23-Jan-06 0:23
nitya_arysys23-Jan-06 0:23 

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.