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.Exception: 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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Exception: 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)]
   HaoSooCms.DBUtility.DbHelperSQL.Query(String SQLString) +303
   HaoSooCms.DAL.sites.GetList(Int32 Top, String strWhere, String filedOrder) +415
   HaoSooCms.BLL.sites.GetModelList() +85
   HaoSooCms.Web.UI.SiteDomains..ctor() +136
   HaoSooCms.Web.UI.SiteDomains.GetSiteDomains() +163
   HaoSooCms.Web.UI.HttpModule.GetCurrDomainPath(String requestDomain) +74
   HaoSooCms.Web.UI.HttpModule.GetSitePath(String webPath, String requestPath, String requestDomain) +85
   HaoSooCms.Web.UI.HttpModule.ReUrl_BeginRequest(Object sender, EventArgs e) +552
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69


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