Showing posts with label InvalidOperationException was unhandled. Show all posts
Showing posts with label InvalidOperationException was unhandled. Show all posts

Friday, 23 November 2012

InvalidOperationException was unhandled,Process has exited, so the requested information is not available.

InvalidOperationException was unhandled,Process has exited, so the requested information is not available. 
I Got This Exception When I Gave Incorrect Path Of The File As An Argument To 'proc.StartInfo.Arguments'.
When I Give Full Path Of The File As An Argument Then The Application Runs Successfully.

Saturday, 13 October 2012

System.InvalidOperationException:ExecuteNonQuery: Connection property has not been initialized.




Friday, 12 October 2012

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.




Sunday, 23 September 2012

The Connection Was Not Closed. The Connection's Current State Is Open

InvalidOperationException, The Connection Was Not Closed. The Connection's Current State Is Open- Actually I Want To Retrieve Data From Database,So i Had taken A Button "btnRetrieve" And I Had Taken An Event "btnRetrieve_Click" And Write The Code To Retrieve Data From The Database..All Is Fine In This Event And No Errors Occurred.
       Now I Need To Retrieve Data From The Database At The Time Of  Typing The Text In The TextBox.  So That  I Had Taken An Event  "txtFirstname_TextChanged". In That TextBox Event I Wrote A Function To Call The "btnRetrieve_Click" Event. The Code Is Compiled Well And Execution Started. But At The Time Of Typing The Text In The TextBox..It Showed The Exception "InvalidOperationException, The Connection Was Not Closed. The Connection's Current State Is Open".
       At The Time Of Button Click Event i.e. "btnRetrieve_Click", It Works Successfully, But Here In TextBox Event i.e."txtFirstname_TextChanged", It Is Showing Exception.


But What I Recognized is That The Text That I Am Typing In The TextBox Should Be Case Sensitive. If The Data in The Database Is In CAPITAL Letters, Then The Text We Are Typing Should Also Be In Capital Letters. It The Text is in Small Letters,Then The Typing Text is Also in Small Letters.or If The Text That We Are Typing Having FirstLetter Capital And Remaining Letter Are Small, Then We Have To Type Like That Only..
If Any Body have Better Solution Than This.You Can Give Me Solution.. ThanQ..