Server Error in '/' Application.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Source Error:


Line 127:		SqlConnection myConnection = new SqlConnection(_cString);
Line 128:		SqlCommand myCommand = new SqlCommand(mySelectQuery, myConnection);
Line 129:		myConnection.Open();
Line 130:		SqlDataReader myReader;
Line 131:		

Source File: g:\pleskvhosts\pandalifeweb.com\ContactOhio.com\App_Code\StaticPage.cs    Line: 129

Stack Trace:


[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +431
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   StaticPage.CheckForStaticPages(String name) in g:\pleskvhosts\pandalifeweb.com\ContactOhio.com\App_Code\StaticPage.cs:129
   UrlClean.CleanUrl.Rewrite(String requestedPath, HttpApplication app) in g:\pleskvhosts\pandalifeweb.com\ContactOhio.com\App_Code\CleanUrl.cs:69
   UrlClean.CleanUrl.BaseModuleRewriter_AuthorizeRequest(Object sender, EventArgs e) in g:\pleskvhosts\pandalifeweb.com\ContactOhio.com\App_Code\CleanUrl.cs:40
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   StaticPage.CheckForStaticPages(String name) in g:\pleskvhosts\pandalifeweb.com\ContactOhio.com\App_Code\StaticPage.cs:129
   UrlClean.CleanUrl.Rewrite(String requestedPath, HttpApplication app) in g:\pleskvhosts\pandalifeweb.com\ContactOhio.com\App_Code\CleanUrl.cs:69
   UrlClean.CleanUrl.BaseModuleRewriter_AuthorizeRequest(Object sender, EventArgs e) in g:\pleskvhosts\pandalifeweb.com\ContactOhio.com\App_Code\CleanUrl.cs:40
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062