[MonoDevelop] [Mono SqlClient Data Provider] SqlException: Timeout expired

Alexis Araya aaraya at gmail.com
Wed Oct 24 18:26:17 UTC 2012


hello,

I have the following problem to debug the program, however the works without
problem run.

The exception is only thrown when debugging not to run

MonoDevelop 3.0.4.7
Microsoft .NET 4.0.30319.544
GTK 2.16.6
Windows 6.1.7601.65536 (64-bit)
Mono 2.10.8

see

app.config

---------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<configuration>
 <connectionStrings>
 <clear />
<add name="Name"
     providerName="System.Data.SqlClient"
     connectionString="Server=xx.4.52.181;Database=database;User
Id=d_user;Password=xxx;Connect Timeout=120;" />
  </connectionStrings>
</configuration>
----------------------------------------
using (IDbConnection connection = new SqlConnection(connectionString))
            {
                connection.Open();
            }


----------------------------------------
Exception Message
System.Data.SqlClient.SqlException: Timeout expired. The timeout period
elapsed prior to completion of the operation or the server is not
responding. ---> System.Exception: Timeout expired. The timeout period
elapsed prior to completion of the operation or the server is not
responding.
  at Mono.Data.Tds.Protocol.TdsComm..ctor (System.String dataSource, Int32
port, Int32 packetSize, Int32 timeout, TdsVersion tdsVersion) [0x00105] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\Mono.Data.Tds\Mono.Data.Tds.Protocol\TdsComm.cs:117

  --- End of inner exception stack trace ---

  at System.Data.SqlClient.SqlConnection.Open () [0x00155] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System.Data\System.Data.SqlClient\SqlConnection.cs:554

  at cl.dao.DaoConversion.listaConversiones () [0x00018] in
C:\Users\U1305349\Documents\Projects\cl.core\cl.dao\DaoConversion.cs:29

  at cl.test.MainClass.Main (System.String[] args) [0x00020] in
C:\Users\U1305349\Documents\Projects\cl..core\cl.test\Main.cs:18



-- 
Alexis Araya S.
http://aarayas.blogspot.com
/* La Amistad se Pierde, Cuando la Envidia Crece */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20121024/de23bd14/attachment.html>


More information about the Monodevelop-list mailing list