[Mono-bugs] [Bug 77004][Wis] New - SqlConnection throws exception if unknown parameters in connection string

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 15 05:11:54 EST 2005

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by manelzaera at yahoo.es.


--- shadow/77004	2005-12-15 05:11:54.000000000 -0500
+++ shadow/77004.tmp.15831	2005-12-15 05:11:54.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 77004
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: Windows XP
+Status: NEW   
+Priority: Wishlist
+Component: Sys.Data.SqlClient
+AssignedTo: tsenganal at novell.com                            
+ReportedBy: manelzaera at yahoo.es               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: SqlConnection throws exception if unknown parameters in connection string
+Description of Problem:
+When creating a System.Data.SqlClient.SqlConnection object, if the
+connection string contains unknown or not implemented properties then a
+NotImplementedException is thrown.
+Steps to reproduce the problem:
+1. Create a SqlConnection object with a connection string like this:
+integrated security=false;server=;persist security
+2. An exception is thrown due to the properties "integrated security" and
+"persist security info".
+Actual Results:
+Solved by removing those properties from connection string.
+Expected Results:
+In my case I think it's possible to open the connection without those
+How often does this happen? 
+Everytime the connection string is like that above.
+Additional Information:
+The problem was detected in a migration from .Net to Mono. The connection
+string does not throw any exception in .Net SqlConnection class.

More information about the mono-bugs mailing list