Server Error in '/' Application.

Error: connection missing

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: Error: connection missing

Source Error:


Line 145:            if (string.IsNullOrEmpty(conn_string)) throw new Exception("Error: connection missing");
Line 146:
Line 147:            using (SqlConnection conn = new SqlConnection(conn_string.Replace("DRIVER=SQL Server;", string.Empty)))
Line 148:            using (SqlCommand cmd = new SqlCommand(CCEmailID > 0 ?
Line 149:                string.Format(@"INSERT INTO CCClicks(CCLinkID,CCContactID, CCClickDate) VALUES({0},{1},getdate());

Source File: c:\inetpub\wwwroot\PRODUCTION\mortgageboss.ca\link.aspx.cs    Line: 147

Stack Trace:


[Exception: Error: connection missing]
   link.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\PRODUCTION\mortgageboss.ca\link.aspx.cs:147
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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