Search code examples
sql-servernetwork-programmingasp-classic

Why do I get this error "[DBNETLIB][ConnectionRead (recv()).]General network error" with ASP pages


Occasionally, on a ASP (classic) site users will get this error:

[DBNETLIB][ConnectionRead (recv()).]General network error.

Seems to be random and not connected to any particular page. The SQL server is separated from the web server and my guess is that every once and a while the "link" goes down between the two. Router/switch issue... or has someone else ran into this problem before?


Solution

  • Using the same setup as yours (ie separate web and database server), I've seen it from time to time and it has always been a connection problem between the servers - typically when the database server is being rebooted but sometimes when there's a comms problem somewhere in the system. I've not seen it triggered by any problems with the ASP code itself, which is why you're seeing it apparently at random and not connected to a particular page.