[Mono-bugs] [Bug 76969][Maj] Changed - Bug in creating of
System.Data.SqlClient.SqlConnection
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Dec 12 09:00:53 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 pazderak at seznam.cz.
http://bugzilla.ximian.com/show_bug.cgi?id=76969
--- shadow/76969 2005-12-12 08:51:04.000000000 -0500
+++ shadow/76969.tmp.25207 2005-12-12 09:00:53.000000000 -0500
@@ -90,6 +90,37 @@
Additional Information:
------- Additional Comments From tsenganal at novell.com 2005-12-12 08:51 -------
pls post the keywords used in the connection string..
If u can add some sample code that causes the crash , that wud be good..
+
+------- Additional Comments From pazderak at seznam.cz 2005-12-12 09:00 -------
+Connection string:
+persist security info=True;user id=plognet;password=#PASSWORD#;data
+source=sklep\sql8;initial catalog=PLog_NET;
+
+Connection string is read from Web.config.
+
+Here is code where error occures (it's method from DAC class):
+
+ public System.Data.SqlClient.SqlConnection Connection
+ {
+ get
+ {
+ if (connection == null)
+ connection = new SqlConnection(GetConnString());
+ if (connection.State!=ConnectionState.Open)
+ try
+ {
+ connection.Open();
+ }
+ catch (Exception e)
+ {
+ throw new ApplicationException("Chyba při připojenà k
+databĂĄzi",e);
+ }
+ return connection;
+ }
+ }
+
+Maybe this helps.
More information about the mono-bugs
mailing list