Timeout (Zeitlimit überschritten) bei visualstudio 2013

julia23

Mitglied
Ich habe ein Problem, dass ich nicht losbekomme. Ich bekomme von meinem VisualStudio 2013 Premium immer wieder die Fehlermeldung (Timeout Zeitlimit überschritten), wenn ich Daten in die DB einlesen will. Ich nutze dabei Server 2008 R2 mit SQL 2008 SP3. Ich habe eine kleinere Anwendung geschrieben, die nur 2 Daten einliest. Da ist es dann so, dass ich nach mehreren Versuchen (mit Verbindung trennen - neu erstellen - wieder Verbinden), dann mal den Datensatz einlesen kann. Also es geht irgendwie zeitweise.

Da ich keine Ahnung habe, an was das liegen könnte, brauche ich Hilfe. Bitte sagt mir, welche Informationen ihr noch gebraucht. Oder ob ihr schon ne grobe Richtung weisen könnt...

Das es mal geht und mal nicht würde ja schon einiges ausschließen oder bin ich da auf dem Holzweg?
 
Kommt der Timeout beim Verbindungsaufbau oder bei der Abfrage?

Kommst du so normal auf den SQL Server oder bekommst du dort auch schon timeouts?
(ev. Netzwerkeinstellungen mal prüfen)

Tritt das problem erst nach längerer Laufzeit auf?
(Ev. die alten Verbindung nicht richtig freigegeben)

(Wie isn die genaue Fehlermeldung)
 
Beim Verbindungsaufbau.

Sorry, aber was meinst du mit normal auf den Server kommen. Also ich kann ihn normal benutzen.

Das Problem ist eigentlich immer da. Nur wenn ich die Verbindung trenne (in visual Studio) dann wieder verbinde. Dann geht es 1 mal.

Das ist die Fehlermeldung von jetzt :

Ein Ausnahmefehler des Typs "System.Data.SqlClient.SqlException" ist in System.Data.dll aufgetreten.

Zusätzliche Informationen: Netzwerkbezogener oder instanzspezifischer Fehler beim Herstellen einer Verbindung mit SQL Server. Der Server wurde nicht gefunden, oder auf ihn kann nicht zugegriffen werden. Überprüfen Sie, ob der Instanzname richtig ist und ob SQL Server Remoteverbindungen zulässt. (provider: Named Pipes Provider, error: 40 - Verbindung mit SQL Server konnte nicht geöffnet werden)

Die war noch vor einer Stunde:

Verbindungstimeout abgelaufen. Das Timeout ist aufgetreten, während die Bestätigung des Handshakes vor der Anmeldung verarbeitet wurde. Möglicherweise ist ein Fehler beim Handshake vor der Anmeldung aufgetreten, oder der Server hat nicht rechtzeitig geantwortet. Folgende Verbindungszeiten wurden bei dem Versuch benötigt, eine Verbindung mit diesem Server herzustellen: [Vor Anmeldung] Initialisierung=21150; Handshake=26;
 
Jetzt lautet die Fehlermeldung :
Ein Ausnahmefehler des Typs "System.Data.SqlClient.SqlException" ist in System.Data.dll aufgetreten.

Zusätzliche Informationen: Verbindungstimeout abgelaufen. Das Timeout ist aufgetreten, während die Bestätigung des Handshakes vor der Anmeldung verarbeitet wurde. Möglicherweise ist ein Fehler beim Handshake vor der Anmeldung aufgetreten, oder der Server hat nicht rechtzeitig geantwortet. Folgende Verbindungszeiten wurden bei dem Versuch benötigt, eine Verbindung mit diesem Server herzustellen: [Vor Anmeldung] Initialisierung=21155; Handshake=20;
 
Kommst du mittels SQL ServerManager drauf, sprich außerhalb von C# oder gibts da auch schon probleme.
Wenn ja liegts höchstwahrscheinlich an den Netzwerkeinstellungen und/oder Einrichtung des Servers.

Aber irgendwie klingt mir das nach als wenn du die Verbindungen des SQL Servers wenn du fertig bist nicht wieder richtig freigibst.

Mal in die Log Files des SQL Server reingesehen, vielleicht steht dort mehr was los is?
 
Also ich hab hier einen ErrorLog gefunden.
Wenn aber Fehler aufgelistet sind, steht da No user action is required.

Ich zeig ihn dir mal:
Code:
No user action is required.


2015-02-19 14:14:45.50 Server  Microsoft SQL Server 2008 R2 (SP3) - 10.50.6000.34 (X64)

  Aug 19 2014 12:21:34

  Copyright (c) Microsoft Corporation

  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)


2015-02-19 14:14:45.71 Server  (c) Microsoft Corporation.

2015-02-19 14:14:45.71 Server  All rights reserved.

2015-02-19 14:14:45.71 Server  Server process ID is 1128.

2015-02-19 14:14:45.85 Server  System Manufacturer: 'VMware, Inc.', System Model: 'VMware Virtual Platform'.

2015-02-19 14:14:45.86 Server  Authentication mode is MIXED.

2015-02-19 14:14:45.95 Server  Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG'.

2015-02-19 14:14:46.08 Server  This instance of SQL Server last reported using a process ID of 1120 at 19.02.2015 08:31:52 (local) 19.02.2015 07:31:52 (UTC). This is an informational message only; no user action is required.

2015-02-19 14:14:46.08 Server  Registry startup parameters:

  -d C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\NameMeinerDB1.mdf

  -e C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG

  -l C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldf

2015-02-19 14:14:46.29 Server  SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.

2015-02-19 14:14:46.35 Server  Detected 2 CPUs. This is an informational message; no user action is required.

2015-02-19 14:14:46.82 Server  Using locked pages for buffer pool.

2015-02-19 14:14:48.40 Server  Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.

2015-02-19 14:14:54.38 Server  Node configuration: node 0: CPU mask: 0x0000000000000003:0 Active CPU mask: 0x0000000000000003:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.

2015-02-19 14:14:55.54 spid7s  Starting up database 'NameMeinerDB1'.

2015-02-19 14:14:56.62 spid7s  28 transactions rolled forward in database 'NameMeinerDB1' (1). This is an informational message only. No user action is required.

2015-02-19 14:14:56.91 spid7s  0 transactions rolled back in database 'NameMeinerDB1' (1). This is an informational message only. No user action is required.

2015-02-19 14:14:56.92 spid7s  Recovery is writing a checkpoint in database 'NameMeinerDB1' (1). This is an informational message only. No user action is required.

2015-02-19 14:14:57.93 spid7s  Resource governor reconfiguration succeeded.

2015-02-19 14:14:57.96 spid7s  SQL Server Audit is starting the audits. This is an informational message. No user action is required.

2015-02-19 14:14:58.00 spid7s  SQL Server Audit has started the audits. This is an informational message. No user action is required.

2015-02-19 14:14:58.06 spid7s  FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'MSSQLSERVER'.

2015-02-19 14:14:58.67 spid7s  SQL Trace ID 1 was started by login "sa".

2015-02-19 14:14:58.76 spid7s  Starting up database 'mssqlsystemresource'.

2015-02-19 14:14:58.88 spid7s  The resource database build version is 10.50.6000. This is an informational message only. No user action is required.

2015-02-19 14:14:59.88 spid10s  Starting up database 'model'.

2015-02-19 14:14:59.93 spid7s  Server name is 'MeinServerName'. This is an informational message only. No user action is required.

2015-02-19 14:15:00.95 spid10s  Clearing tempdb database.

2015-02-19 14:15:02.00 spid10s  Starting up database 'tempdb'.

2015-02-19 14:15:02.05 Server  A self-generated certificate was successfully loaded for encryption.

2015-02-19 14:15:02.11 Server  Server is listening on [ 'any' <ipv6> 1433].

2015-02-19 14:15:02.12 Server  Server is listening on [ 'any' <ipv4> 1433].

2015-02-19 14:15:02.12 Server  Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\MSSQLSERVER ].

2015-02-19 14:15:02.12 Server  Server local connection provider is ready to accept connection on [ \\.\pipe\sql\query ].

2015-02-19 14:15:02.12 Server  Server is listening on [ ::1 <ipv6> 1434].

2015-02-19 14:15:02.13 Server  Server is listening on [ 127.0.0.1 <ipv4> 1434].

2015-02-19 14:15:02.13 Server  Dedicated admin connection support was established for listening locally on port 1434.

2015-02-19 14:15:02.18 Server  The SQL Server Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3. Failure to register an SPN may cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.

2015-02-19 14:15:02.18 Server  SQL Server is now ready for client connections. This is an informational message; no user action is required.

2015-02-19 14:15:02.53 spid14s  The Service Broker protocol transport is disabled or not configured.

2015-02-19 14:15:02.53 spid14s  The Database Mirroring protocol transport is disabled or not configured.

2015-02-19 14:15:03.06 spid14s  Service Broker manager has started.

2015-02-19 14:15:03.07 spid13s  A new instance of the full-text filter daemon host process has been successfully started.

2015-02-19 14:15:05.09 spid19s  Starting up database 'NameMeinerDB2'.

2015-02-19 14:15:05.09 spid13s  Starting up database 'msdb'.

2015-02-19 14:15:05.10 spid20s  Starting up database 'NameMeinerDB2-KD'.

2015-02-19 14:15:06.48 spid20s  2 transactions rolled forward in database 'NameMeinerDB2-KD' (6). This is an informational message only. No user action is required.

2015-02-19 14:15:06.73 spid7s  0 transactions rolled back in database 'NameMeinerDB2-KD' (6). This is an informational message only. No user action is required.

2015-02-19 14:15:06.73 spid7s  Recovery is writing a checkpoint in database 'NameMeinerDB2-KD' (6). This is an informational message only. No user action is required.

2015-02-19 14:15:07.09 spid7s  Recovery completed for database NameMeinerDB2-KD (database ID 6) in 1 second(s) (analysis 69 ms, redo 357 ms, undo 124 ms.) This is an informational message only. No user action is required.

2015-02-19 14:15:07.28 spid13s  9 transactions rolled forward in database 'msdb' (4). This is an informational message only. No user action is required.

2015-02-19 14:15:07.75 spid7s  0 transactions rolled back in database 'msdb' (4). This is an informational message only. No user action is required.

2015-02-19 14:15:07.75 spid7s  Recovery is writing a checkpoint in database 'msdb' (4). This is an informational message only. No user action is required.

2015-02-19 14:15:07.75 spid7s  Recovery completed for database msdb (database ID 4) in 1 second(s) (analysis 134 ms, redo 398 ms, undo 301 ms.) This is an informational message only. No user action is required.

2015-02-19 14:15:08.47 spid7s  Recovery is complete. This is an informational message only. No user action is required.

2015-02-19 14:19:07.38 spid53  Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.

2015-02-19 14:19:07.38 spid55  Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.

2015-02-19 14:19:07.38 spid54  Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.

2015-02-19 14:19:07.48 spid53  Using 'xpstar.dll' version '2009.100.1600' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.
 
Zuletzt bearbeitet von einem Moderator:
Leider kann ich nicht mal darauf zugreifen. Wenn ich sqlcmd aufmache und losschreiben will, ist das schon nicht möglich und das Programm schließt sich von selbst.

Heute will mein Rechner wohl nicht ^^
 
Zurück