G
Guest
During the past 4-5 weeks, I've been experiencing General Network Errors
randomly.
I can go a day or two without any or I can receive up to 10 of them on a
single day.
The general error is:
Source: System.Web
Target Site: Boolean HandleError(System.Exception)
Message: Exception of type System.Web.HttpUnhandledException was thrown.
Inner exception Source: .Net SqlClient Data Provider
Inner exception Message: General network error. Check your network
documentation.
Stack trace:
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at WebClasses.Files.serveFile(String strCommands)
at D0410.Site.Tables.PotentialSites.view.serveFile(Object sender,
CommandEventArgs e)
at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
at
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain()
A bit of background:
1) IIS server running Windows 2003 Standard (no SP1)
2) SQL Server 2000 running Windows 20003 Standard (no SP1)
My connection string looks something like:
value="Network Library=DBMSSOCN;
Data Source=xxx.xxx.xxx.xxx;
Initial Catalog=Test;
Persist Security Info=True;
Pooling=True;
Min Pool Size=5;
Max Pool Size=75000;
Connection Reset=False;
Integrated Security=SSPI;";
After a user is validated, the connection string is modified by adding the
"Application Name" [I guess my question here is, is connection pooling turned
off by adding this piece?]
Here's some code which occasionally causes the error:
SqlConnection cnx = new SqlConnection(
System.Configuration.ConfigurationSettings.AppSettings["dbConnection"]+"Application Name="+strUsername+";" );
cnx.Open();
SqlCommand cmd = new SqlCommand("sp_insertAuditDocuments", cnx);
cmd.CommandType = CommandType.StoredProcedure;
SqlParameter prm;
prm = new SqlParameter("@strUsername",SqlDbType.VarChar,15);
prm.Direction = ParameterDirection.Input;
prm.Value = strUsername;
cmd.Parameters.Add(prm);
prm = new SqlParameter("@strFilePath",SqlDbType.VarChar,300);
prm.Direction = ParameterDirection.Input;
prm.Value = strFileDirectory;
cmd.Parameters.Add(prm);
prm = new SqlParameter("@strFileName",SqlDbType.VarChar,300);
prm.Direction = ParameterDirection.Input;
prm.Value = strFileName;
cmd.Parameters.Add(prm);
cmd.ExecuteNonQuery();
cnx.Close();
Any ideas?
randomly.
I can go a day or two without any or I can receive up to 10 of them on a
single day.
The general error is:
Source: System.Web
Target Site: Boolean HandleError(System.Exception)
Message: Exception of type System.Web.HttpUnhandledException was thrown.
Inner exception Source: .Net SqlClient Data Provider
Inner exception Message: General network error. Check your network
documentation.
Stack trace:
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at WebClasses.Files.serveFile(String strCommands)
at D0410.Site.Tables.PotentialSites.view.serveFile(Object sender,
CommandEventArgs e)
at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
at
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain()
A bit of background:
1) IIS server running Windows 2003 Standard (no SP1)
2) SQL Server 2000 running Windows 20003 Standard (no SP1)
My connection string looks something like:
value="Network Library=DBMSSOCN;
Data Source=xxx.xxx.xxx.xxx;
Initial Catalog=Test;
Persist Security Info=True;
Pooling=True;
Min Pool Size=5;
Max Pool Size=75000;
Connection Reset=False;
Integrated Security=SSPI;";
After a user is validated, the connection string is modified by adding the
"Application Name" [I guess my question here is, is connection pooling turned
off by adding this piece?]
Here's some code which occasionally causes the error:
SqlConnection cnx = new SqlConnection(
System.Configuration.ConfigurationSettings.AppSettings["dbConnection"]+"Application Name="+strUsername+";" );
cnx.Open();
SqlCommand cmd = new SqlCommand("sp_insertAuditDocuments", cnx);
cmd.CommandType = CommandType.StoredProcedure;
SqlParameter prm;
prm = new SqlParameter("@strUsername",SqlDbType.VarChar,15);
prm.Direction = ParameterDirection.Input;
prm.Value = strUsername;
cmd.Parameters.Add(prm);
prm = new SqlParameter("@strFilePath",SqlDbType.VarChar,300);
prm.Direction = ParameterDirection.Input;
prm.Value = strFileDirectory;
cmd.Parameters.Add(prm);
prm = new SqlParameter("@strFileName",SqlDbType.VarChar,300);
prm.Direction = ParameterDirection.Input;
prm.Value = strFileName;
cmd.Parameters.Add(prm);
cmd.ExecuteNonQuery();
cnx.Close();
Any ideas?