Server Error in '/' Application.

Unable to connect to database.  Check database connection information and make sure the database server is running.

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.Runtime.InteropServices.COMException: Unable to connect to database.  Check database connection information and make sure the database server is running.

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:


[COMException (0x81020024): Unable to connect to database.  Check database connection information and make sure the database server is running.]
   Microsoft.SharePoint.Library.SPRequestInternalClass.PreInitServer(String bstrAbsoluteRequestUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gApplicationId, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, Boolean fHostHeaderIsSiteName) +0
   Microsoft.SharePoint.Library.SPRequest.PreInitServer(String bstrAbsoluteRequestUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gApplicationId, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, Boolean fHostHeaderIsSiteName) +212

[SPException: Unable to connect to database.  Check database connection information and make sure the database server is running.]
   Microsoft.SharePoint.Library.SPRequest.PreInitServer(String bstrAbsoluteRequestUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gApplicationId, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, Boolean fHostHeaderIsSiteName) +260
   Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request) +344
   Microsoft.SharePoint.SPWeb.InitializeSPRequest() +290
   Microsoft.SharePoint.SPWeb.EnsureSPRequest() +58
   Microsoft.SharePoint.SPWeb.get_Request() +54
   Microsoft.SharePoint.SPWeb.InitWebPublic() +522
   Microsoft.SharePoint.SPWeb.get_Language() +43
   Microsoft.SharePoint.Portal.WebControls.<>c__DisplayClass3.<GetScopeDisplayGroupNameDefaultValue>b__2() +73
   Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state) +70
   Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +389
   Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +152
   Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +344
   Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +86
   Microsoft.SharePoint.Portal.WebControls.SearchBoxEx.GetScopeDisplayGroupNameDefaultValue() +192
   Microsoft.SharePoint.Portal.WebControls.SearchBoxEx..ctor() +299
   T_e4f347c1_4a92_4f87_9f4d_f742de7a62b4.CreateInstance() +20
   System.Web.HttpRuntime.FastCreatePublicInstance(Type type) +419
   System.Web.UI.ControlBuilder.BuildObjectInternal() +195
   System.Web.UI.ControlBuilder.BuildObject() +4
   System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
   System.Web.UI.WebControls.ContentPlaceHolderBuilder.BuildChildren(Object parentObj) +51
   System.Web.UI.ControlBuilder.InitObject(Object obj) +342
   System.Web.UI.ControlBuilder.BuildObjectInternal() +238
   System.Web.UI.WebControls.ContentPlaceHolderBuilder.BuildObject() +59
   System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
   System.Web.UI.ControlBuilder.InitObject(Object obj) +342
   System.Web.UI.ControlBuilder.BuildObjectInternal() +238
   System.Web.UI.ControlBuilder.BuildObject() +4
   System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
   System.Web.UI.ControlBuilder.InitObject(Object obj) +342
   System.Web.UI.ControlBuilder.BuildObjectInternal() +238
   System.Web.UI.ControlBuilder.BuildObject() +4
   System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
   System.Web.UI.ControlBuilder.InitObject(Object obj) +342
   System.Web.UI.FileLevelPageControlBuilder.InitObject(Object obj) +46
   System.Web.Compilation.BuildResultNoCompileTemplateControl.FrameworkInitialize(TemplateControl templateControl) +148
   System.Web.UI.TemplateControl.FrameworkInitialize() +8772601
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8751443
   System.Web.UI.Page.get_Master() +51
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282


Version Information: Microsoft .NET Framework Version:2.0.50727.3662; ASP.NET Version:2.0.50727.3668