Click here to Skip to main content
15,925,371 members
Home / Discussions / C#
   

C#

 
QuestionC# in the Computer network Pin
richarding13-Dec-05 3:34
richarding13-Dec-05 3:34 
JokeRe: C# in the Computer network Pin
akyriako7813-Dec-05 3:42
akyriako7813-Dec-05 3:42 
AnswerRe: C# in the Computer network Pin
MarcelErz13-Dec-05 4:37
MarcelErz13-Dec-05 4:37 
GeneralRe: C# in the Computer network Pin
MarcelErz14-Dec-05 2:06
MarcelErz14-Dec-05 2:06 
AnswerRe: C# in the Computer network Pin
Judah Gabriel Himango13-Dec-05 4:41
sponsorJudah Gabriel Himango13-Dec-05 4:41 
GeneralRe: C# in the Computer network Pin
richarding18-Dec-05 23:56
richarding18-Dec-05 23:56 
GeneralRe: C# in the Computer network Pin
Judah Gabriel Himango19-Dec-05 4:00
sponsorJudah Gabriel Himango19-Dec-05 4:00 
QuestionMSVS 2005 team suite BETA2 sql connection problem. Pin
ashjas13-Dec-05 2:54
ashjas13-Dec-05 2:54 
hello,

I am having problems with the following code,it is raising a timeout exception....





code:
-----------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace SQLdbConnection
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Initial
Catalog=db1;data source=local;integrated security=sspi;");
con.Open();
SqlDataAdapter dA=new SqlDataAdapter("select*from t1",con);
DataSet dS=new DataSet();
dA.Fill(dS,"T1");



}
}
}


---------------------

exception error:

----------------------
See the end of this message, instead of this dialog box, for details on invoking
just-in-time (JIT) debugging.

************** Exception Text **************
System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at SQLdbConnection.Form1.button1_Click(Object sender, EventArgs e) in E:\MSVS2005\AllProjects\SQLdbConnection\SQLdbConnection\Form1.cs:line 26
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.44 (beta2.050215-4400)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50215/mscorlib.dll
----------------------------------------
SQLdbConnection
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///E:/MSVS2005/AllProjects/SQLdbConnection/SQLdbConnection/bin/Debug/SQLdbConnection.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.44 (beta2.050215-4400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.44 (beta2.050215-4400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.44 (beta2.050215-4400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.44 (beta2.050215-4400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.44 (beta2.050215-4400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.44 (beta2.050215-4400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.44 (beta2.050215-4400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.44 (beta2.050215-4400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitdebugging="true">


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

---------------------------




Please help me out,I think there is some provider error.....

-- modified at 8:55 Tuesday 13th December, 2005
Questionconnectionstring Pin
fmardani13-Dec-05 2:49
fmardani13-Dec-05 2:49 
AnswerRe: connectionstring Pin
Curtis Schlak.13-Dec-05 3:03
Curtis Schlak.13-Dec-05 3:03 
GeneralRe: connectionstring Pin
fmardani13-Dec-05 3:09
fmardani13-Dec-05 3:09 
GeneralRe: connectionstring Pin
Curtis Schlak.13-Dec-05 3:37
Curtis Schlak.13-Dec-05 3:37 
Questionconnectionstring Pin
fmardani13-Dec-05 2:33
fmardani13-Dec-05 2:33 
AnswerRe: connectionstring Pin
J4amieC13-Dec-05 2:46
J4amieC13-Dec-05 2:46 
Questionhow to programmatically do digest authentication against active directory? Pin
redclover13-Dec-05 1:49
redclover13-Dec-05 1:49 
QuestionHow to launch file properties window from winform? Pin
Jim Taylor13-Dec-05 1:20
Jim Taylor13-Dec-05 1:20 
AnswerRe: How to launch file properties window from winform? Pin
Curtis Schlak.13-Dec-05 4:08
Curtis Schlak.13-Dec-05 4:08 
GeneralRe: How to launch file properties window from winform? Pin
Jim Taylor13-Dec-05 5:25
Jim Taylor13-Dec-05 5:25 
GeneralRe: How to launch file properties window from winform? Pin
Curtis Schlak.13-Dec-05 5:39
Curtis Schlak.13-Dec-05 5:39 
QuestionEnterprise Library sucks? Pin
TimGSXR13-Dec-05 0:43
TimGSXR13-Dec-05 0:43 
AnswerRe: Enterprise Library sucks? Pin
Ista13-Dec-05 2:31
Ista13-Dec-05 2:31 
QuestionChecking if a INT is NaN Pin
binglin13-Dec-05 0:31
binglin13-Dec-05 0:31 
QuestionRe: Checking if a INT is NaN Pin
leppie13-Dec-05 0:55
leppie13-Dec-05 0:55 
AnswerRe: Checking if a INT is NaN Pin
binglin13-Dec-05 13:44
binglin13-Dec-05 13:44 
AnswerRe: Checking if a INT is NaN Pin
Robert Rohde13-Dec-05 1:08
Robert Rohde13-Dec-05 1:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.