Server Error in '/' Application.

select * from tbl_comment where fld_TID=1190 and fld_type=3 and fld_active='1' <br>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.Exception: select * from tbl_comment where fld_TID=1190 and fld_type=3 and fld_active='1' <br>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 64:             catch (Exception ex)
Line 65:             {
Line 66:                 throw new Exception(sqlStr + " <br>" + ex.Message);
Line 67:             }
Line 68:             finally

Source File: c:\Seraj-Server\seraj-website\App_Code\Cdb.cs    Line: 66

Stack Trace:


[Exception: select * from tbl_comment where fld_TID=1190 and fld_type=3 and fld_active='1' <br>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)]
   Cdb.OleExecDataSet(String sqlStr) in c:\Seraj-Server\seraj-website\App_Code\Cdb.cs:66
   comment.select(String id, String tp) in c:\Seraj-Server\seraj-website\App_Code\comment.cs:48
   Seraj_show.fill() in c:\Seraj-Server\seraj-website\Seraj\show.aspx.cs:597
   Seraj_show.Page_Load(Object sender, EventArgs e) in c:\Seraj-Server\seraj-website\Seraj\show.aspx.cs:89
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4110.0