[Mono-bugs] [Bug 73826][Nor] New - SybaseClient and ASA 9.02 (database not found error)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 18 Mar 2005 00:08:55 -0500 (EST)


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 mdfranz@gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=73826

--- shadow/73826	2005-03-18 00:08:55.000000000 -0500
+++ shadow/73826.tmp.5946	2005-03-18 00:08:55.000000000 -0500
@@ -0,0 +1,214 @@
+Bug#: 73826
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: Ubuntu Hoary
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data.SqlClient
+AssignedTo: rodrigo@novell.com                            
+ReportedBy: mdfranz@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: SybaseClient and ASA 9.02  (database not found error)
+
+* Summary *
+
+1.0.5 SybaseClient doesn't appear to work with Windows  ASA server (9.0.2.2451)
+
+The following assumes the "Network Server Sample"
+
+* Code *
+using System;
+using System.Data;
+using Mono.Data.SybaseClient;
+
+public class Test
+{
+    public static void Main(string[] args)
+    {
+       string connectionString =
+          "Server=192.168.54.128,2638;" +
+          "Database=asademo9;" +
+          "User ID=dba;" +
+          "Password=sql;";
+
+       IDbConnection dbcon;
+       dbcon = new SybaseConnection(connectionString);
+       dbcon.Open();
+       dbcon.Close();
+       dbcon = null;
+    }
+}
+
+* Version Info *
+
+mfranz@mfranz-t40u:~$ mono --version
+Mono JIT compiler version 1.0.5, (C) 2002-2004 Novell, Inc and
+Contributors. www.go-mono.com
+        TLS:           normal
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV      : normal
+        Globalization: ICU
+
+
+* Output *
+mfranz@mfranz-t40u:~$ mcs SybaseTest.cs -r:System.Data.dll
+-r:Mono.Data.SybaseClient.dll; mono SybaseTest.exe 
+Compilation succeeded
+
+Unhandled Exception: Mono.Data.SybaseClient.SybaseException: ASA Error -83:
+Specified database not found
+in <0x0011b> Mono.Data.SybaseClient.SybaseConnection:ErrorHandler
+(object,Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs)
+in <0x00069> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_TdsInternalErrorMessageEventArgs
+(object,Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs)
+in <0x0001e> Mono.Data.Tds.Protocol.Tds:OnTdsErrorMessage
+(Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs)
+in <0x00056> (wrapper remoting-invoke-with-check)
+Mono.Data.Tds.Protocol.Tds:OnTdsErrorMessage
+(Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs)
+in <0x00276> Mono.Data.Tds.Protocol.Tds:ProcessMessage
+(Mono.Data.Tds.Protocol.TdsPacketSubType)
+in <0x00052> (wrapper remoting-invoke-with-check)
+Mono.Data.Tds.Protocol.Tds:ProcessMessage
+(Mono.Data.Tds.Protocol.TdsPacketSubType)
+in <0x0015f> Mono.Data.Tds.Protocol.Tds:ProcessSubPacket ()
+in <0x00050> Mono.Data.Tds.Protocol.Tds:NextResult ()
+in <0x0005d> (wrapper remoting-invoke-with-check)
+Mono.Data.Tds.Protocol.Tds:NextResult ()
+in <0x00011> Mono.Data.Tds.Protocol.Tds:SkipToEnd ()
+in <0x0004f> (wrapper remoting-invoke-with-check)
+Mono.Data.Tds.Protocol.Tds:SkipToEnd ()
+in <0x00ccf> Mono.Data.Tds.Protocol.Tds50:Connect
+(Mono.Data.Tds.Protocol.TdsConnectionParameters)
+in <0x003af> Mono.Data.SybaseClient.SybaseConnection:Open ()
+
+* Sniffer Dump *
+
+root@mfranz-t40u:~# tcpdump -s0 -X -ni vmnet8 port 2638
+tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
+listening on vmnet8, link-type EN10MB (Ethernet), capture size 65535 bytes
+21:50:11.998068 IP 192.168.54.1.43001 > 192.168.54.128.2638: S
+2114323575:2114323575(0) win 5840 <mss 1460,sackOK,timestamp 16207756
+0,nop,wscale 2>
+        0x0000:  4500 003c 4bfb 4000 4006 00ef c0a8 3601  E..<K.@.@.....6.
+        0x0010:  c0a8 3680 a7f9 0a4e 7e06 0477 0000 0000  ..6....N~..w....
+        0x0020:  a002 16d0 be1a 0000 0204 05b4 0402 080a  ................
+        0x0030:  00f7 4f8c 0000 0000 0103 0302            ..O.........
+21:50:11.998808 IP 192.168.54.128.2638 > 192.168.54.1.43001: S
+3642723811:3642723811(0) ack 2114323576 win 64240 <mss 1460,nop,wscale
+0,nop,nop,timestamp 0 0,nop,nop,sackOK>
+        0x0000:  4500 0040 0086 4000 8006 0c60 c0a8 3680  E..@..@....`..6.
+        0x0010:  c0a8 3601 0a4e a7f9 d91f 8de3 7e06 0478  ..6..N......~..x
+        0x0020:  b012 faf0 b164 0000 0204 05b4 0103 0300  .....d..........
+        0x0030:  0101 080a 0000 0000 0000 0000 0101 0402  ................
+21:50:11.999411 IP 192.168.54.1.43001 > 192.168.54.128.2638: . ack 1 win
+1460 <nop,nop,timestamp 16207758 0>
+        0x0000:  4500 0034 4bfd 4000 4006 00f5 c0a8 3601  E..4K.@.@.....6.
+        0x0010:  c0a8 3680 a7f9 0a4e 7e06 0478 d91f 8de4  ..6....N~..x....
+        0x0020:  8010 05b4 96e7 0000 0101 080a 00f7 4f8e  ..............O.
+        0x0030:  0000 0000                                ....
+21:50:12.078997 IP 192.168.54.1.43001 > 192.168.54.128.2638: P 1:513(512)
+ack 1 win 1460 <nop,nop,timestamp 16207838 0>
+        0x0000:  4500 0234 4bff 4000 4006 fef2 c0a8 3601  E..4K.@.@.....6.
+        0x0010:  c0a8 3680 a7f9 0a4e 7e06 0478 d91f 8de4  ..6....N~..x....
+        0x0020:  8018 05b4 df83 0000 0101 080a 00f7 4fde  ..............O.
+        0x0030:  0000 0000 0200 0200 0000 0000 6c6f 6361  ............loca
+        0x0040:  6c68 6f73 7400 0000 0000 0000 0000 0000  lhost...........
+        0x0050:  0000 0000 0000 0000 0000 0964 6261 0000  ...........dba..
+        0x0060:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0070:  0000 0000 0000 0000 0003 7371 6c00 0000  ..........sql...
+        0x0080:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0090:  0000 0000 0000 0000 0333 3738 3736 0000  .........37876..
+        0x00a0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x00b0:  0000 0000 0000 0005 0301 060a 0901 0100  ................
+        0x00c0:  0000 0000 0000 0000 4d6f 6e6f 2053 7962  ........Mono.Syb
+        0x00d0:  6173 6543 6c69 656e 7420 4461 7461 2050  aseClient.Data.P
+        0x00e0:  726f 7669 6465 1e31 3932 2e31 3638 2e35  rovide.192.168.5
+        0x00f0:  342e 3132 3800 0000 0000 0000 0000 0000  4.128...........
+        0x0100:  0000 0000 000e 0000 7371 6c00 0000 0000  ........sql.....
+        0x0110:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0120:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0130:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0140:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0150:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0160:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0170:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0180:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0190:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x01a0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x01b0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x01c0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x01d0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x01e0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x01f0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0200:  0000 0000 0005 0500 0000 4d6f 6e6f 0000  ..........Mono..
+        0x0210:  0000 0000 0406 0000 0000 0d11 0000 0000  ................
+        0x0220:  0000 0000 0000 0000 0000 0000 0000 0000  ................
+        0x0230:  0000 0000                                ....
+21:50:12.210910 IP 192.168.54.128.2638 > 192.168.54.1.43001: . ack 513 win
+63728 <nop,nop,timestamp 9790 16207838>
+        0x0000:  4500 0034 0087 4000 8006 0c6b c0a8 3680  E..4..@....k..6.
+        0x0010:  c0a8 3601 0a4e a7f9 d91f 8de4 7e06 0678  ..6..N......~..x
+        0x0020:  8010 f8f0 7b1c 0000 0101 080a 0000 263e  ....{.........&>
+        0x0030:  00f7 4fde                                ..O.
+21:50:12.211236 IP 192.168.54.1.43001 > 192.168.54.128.2638: P 513:610(97)
+ack 1 win 1460 <nop,nop,timestamp 16207970 9790>
+        0x0000:  4500 0095 4c01 4000 4006 0090 c0a8 3601  E...L.@.@.....6.
+        0x0010:  c0a8 3680 a7f9 0a4e 7e06 0678 d91f 8de4  ..6....N~..x....
+        0x0020:  8018 05b4 0a2b 0000 0101 080a 00f7 5062  .....+........Pb
+        0x0030:  0000 263e 0201 0061 0000 0000 0000 0000  ..&>...a........
+        0x0040:  0000 0001 0000 0000 0000 0000 0000 0000  ................
+        0x0050:  0069 736f 5f31 0000 0000 0000 0000 0000  .iso_1..........
+        0x0060:  0000 0000 0000 0000 0000 0000 0000 0005  ................
+        0x0070:  0135 3132 0000 0003 0000 0000 0000 0000  .512............
+        0x0080:  e214 0001 03ef 6541 ffff ffd6 0200 0000  ......eA........
+        0x0090:  0648 0000 08                             .H...
+21:50:12.211732 IP 192.168.54.128.2638 > 192.168.54.1.43001: P 1:113(112)
+ack 610 win 63631 <nop,nop,timestamp 9790 16207970>
+        0x0000:  4500 00a4 0088 4000 8006 0bfa c0a8 3680  E.....@.......6.
+        0x0010:  c0a8 3601 0a4e a7f9 d91f 8de4 7e06 06d9  ..6..N......~...
+        0x0020:  8018 f88f 7e1c 0000 0101 080a 0000 263e  ....~.........&>
+        0x0030:  00f7 5062 0401 0070 0000 0000 ad22 0006  ..Pb...p....."..
+        0x0040:  0500 0000 1841 6461 7074 6976 6520 5365  .....Adaptive.Se
+        0x0050:  7276 6572 2041 6e79 7768 6572 6509 0000  rver.Anywhere...
+        0x0060:  00aa 3700 8f03 0000 0010 2b00 4153 4120  ..7.......+.ASA.
+        0x0070:  4572 726f 7220 2d38 333a 2053 7065 6369  Error.-83:.Speci
+        0x0080:  6669 6564 2064 6174 6162 6173 6520 6e6f  fied.database.no
+        0x0090:  7420 666f 756e 6400 0000 00fd 0200 0000  t.found.........
+        0x00a0:  0000 0000                                ....
+21:50:12.231243 IP 192.168.54.1.43001 > 192.168.54.128.2638: . ack 113 win
+1460 <nop,nop,timestamp 16207990 9790>
+        0x0000:  4500 0034 4c03 4000 4006 00ef c0a8 3601  E..4L.@.@.....6.
+        0x0010:  c0a8 3680 a7f9 0a4e 7e06 06d9 d91f 8e54  ..6....N~......T
+        0x0020:  8010 05b4 6cf0 0000 0101 080a 00f7 5076  ....l.........Pv
+        0x0030:  0000 263e                                ..&>
+21:50:12.270441 IP 192.168.54.1.43001 > 192.168.54.128.2638: F 610:610(0)
+ack 113 win 1460 <nop,nop,timestamp 16208029 9790>
+        0x0000:  4500 0034 4c05 4000 4006 00ed c0a8 3601  E..4L.@.@.....6.
+        0x0010:  c0a8 3680 a7f9 0a4e 7e06 06d9 d91f 8e54  ..6....N~......T
+        0x0020:  8011 05b4 6cc8 0000 0101 080a 00f7 509d  ....l.........P.
+        0x0030:  0000 263e                                ..&>
+21:50:12.270760 IP 192.168.54.128.2638 > 192.168.54.1.43001: . ack 611 win
+63631 <nop,nop,timestamp 9791 16208029>
+        0x0000:  4500 0034 0089 4000 8006 0c69 c0a8 3680  E..4..@....i..6.
+        0x0010:  c0a8 3601 0a4e a7f9 d91f 8e54 7e06 06da  ..6..N.....T~...
+        0x0020:  8010 f88f 79eb 0000 0101 080a 0000 263f  ....y.........&?
+        0x0030:  00f7 509d                                ..P.
+21:50:12.271019 IP 192.168.54.128.2638 > 192.168.54.1.43001: F 113:113(0)
+ack 611 win 63631 <nop,nop,timestamp 9791 16208029>
+        0x0000:  4500 0034 008a 4000 8006 0c68 c0a8 3680  E..4..@....h..6.
+        0x0010:  c0a8 3601 0a4e a7f9 d91f 8e54 7e06 06da  ..6..N.....T~...
+        0x0020:  8011 f88f 79ea 0000 0101 080a 0000 263f  ....y.........&?
+        0x0030:  00f7 509d                                ..P.
+21:50:12.271301 IP 192.168.54.1.43001 > 192.168.54.128.2638: . ack 114 win
+1460 <nop,nop,timestamp 16208030 9791>
+        0x0000:  4500 0034 4c07 4000 4006 00eb c0a8 3601  E..4L.@.@.....6.
+        0x0010:  c0a8 3680 a7f9 0a4e 7e06 06da d91f 8e55  ..6....N~......U
+        0x0020:  8010 05b4 6cc5 0000 0101 080a 00f7 509e  ....l.........P.
+        0x0030:  0000 263f                                ..&?