Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > error: an exception of type: {System.InvalidOperationException} occurred

Reply
Thread Tools

error: an exception of type: {System.InvalidOperationException} occurred

 
 
Elmo Watson
Guest
Posts: n/a
 
      06-14-2007
I have a class - I Dim a SQLconnection, then, in Sub New, I instantiate it,
so that it's available to me whenever I reference the class (correct?):
Conn = New SqlConnection(msConn)

Then, in my Subs/Functions, this section (inherited from previous author):
If Conn.State = ConnectionState.Closed Then
Conn.ConnectionString = msConn
Conn.Open()
End If

I step through this, line by line, and Conn.Open never actually opens the
connection. I do a quick watch on 'Conn' and pretty much everything looks
right. the connection is there, the connectionstring is correct.

However - I did a quick watch on 'Conn' - - all except one thing looked
good - on the server version, it reported an error:
ServerVersion <error: an exception of type:
{System.InvalidOperationException} occurred> String

MSDN didn't help -

Any ideas on this?








 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The exception unknown software exception (0xc0000409) occurred in the application at location 0x00000000. Lars-Erik Aabech ASP .Net 7 05-19-2009 08:04 PM
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in sy NicK chlam via DotNetMonster.com ASP .Net 0 03-21-2005 01:01 AM
Compiler error occurred when try to use a flexible template expression in preprocessor definesCompiler error occurred when try to use a flexible template expression in preprocessor defines snnn C++ 6 03-14-2005 04:09 PM
An unhandled exception of type 'System.Threading.ThreadAbortException' occurred in Unknown Module. Lee Simpson ASP .Net 0 07-18-2003 09:52 AM
An unhandled exception occurred during compilation using the CodeDomProvider Pardhasaradhy ASP .Net 1 07-09-2003 05:37 AM



Advertisments