Server Error in '/' Application.

The wait operation timed out

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 wait operation timed out

Source Error:

Line 105:            if(int.TryParse(Request.QueryString["fid"],out fpid))
Line 106:            {
Line 107:                LocalEvents localevents = new LocalEvents(fpid);
Line 108:                if (localevents.Active && localevents.EventId == Convert.ToInt64(Request.QueryString["fid"]))
Line 109:                {

Source File: c:\home\site\wwwroot\LocalEventsPhotos.aspx.cs    Line: 107

Stack Trace:

[Win32Exception (0x80004005): The wait operation timed out]

[SqlException (0x80131904): Connection Timeout Expired.  The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement.  This could be because the pre-login handshake failed or the server was unable to respond back in time.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=9; handshake=4457; ]
   Ragalahari.Data.LocalEvents.GetDataFromDatabase(Int64 ievent_id) +237
   Ragalahari.Data.LocalEvents..ctor(Int64 ievent_id) +61
   LocalEventPhotos.Page_Load(Object sender, EventArgs e) in c:\home\site\wwwroot\LocalEventsPhotos.aspx.cs:107
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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