Server Error in '/' Application.

The system cannot find the file specified

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.ComponentModel.Win32Exception: The system cannot find the file specified

Source Error:


Line 100:        SubProductService service = new SubProductService();
Line 101:        s = Request.QueryString["supid"].ToString();
Line 102:        DataSet ds = service.GetDetailById("subproductname",s);
Line 103:        subproductname = ds.Tables[0].Rows[0]["subproductname"].ToString();
Line 104:        salesprice = Convert.ToDouble(ds.Tables[0].Rows[0]["salesprice"]);

Source File: e:\Inetpub\vhosts\invoicebillingsoftware.in\pushtishringar.com\sub-product-detail.aspx.cs    Line: 102

Stack Trace:


[Win32Exception (0x80004005): The system cannot find the file specified]

[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)]
   pushtishringarCom.Services.SubProductService.GetDetailById(String action, String id) +432
   sub_product_detail.getsubproductname() in e:\Inetpub\vhosts\invoicebillingsoftware.in\pushtishringar.com\sub-product-detail.aspx.cs:102
   sub_product_detail.Page_Load(Object sender, EventArgs e) in e:\Inetpub\vhosts\invoicebillingsoftware.in\pushtishringar.com\sub-product-detail.aspx.cs:59
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1602


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