Server Error in '/' Application.

A severe error occurred on the current command.  The results, if any, should be discarded.
A severe error occurred on the current command.  The results, if any, should be discarded.

Description: An unhandled exception occurred.

Exception Details: System.Data.SqlClient.SqlException: A severe error occurred on the current command.  The results, if any, should be discarded.
A severe error occurred on the current command.  The results, if any, should be discarded.

Source Error:


Line 37:         if (propitem.Fields["Country"].Value.Equals(item.Fields["Country"].Value))
Line 38:         {
Line 39:             var propertyItem = propitem.Database.SelectSingleItem("fast:/sitecore/content/Global/Dictionary/Common/Property/Name//*[@@name = '" + propitem.Database.GetItem(propitem.Fields["Name"].Value).Name + "' and @@templatename = 'Dictionary']");
Line 40:             var propertyPath = propitem.Database.GetItem(propitem.Fields["Booking Type"].Value).Name.Equals("External Booking") ? propitem.Fields["External Booking Url"].Value : propitem.Url() + "/reservation-form";
Line 41: 

Source File: c:\home\site\wwwroot\Views\Booking\Common\BookingMaskHeader.cshtml    Line: 39

Stack Trace:


[SqlException (0x80131904): A severe error occurred on the current command.  The results, if any, should be discarded.
A severe error occurred on the current command.  The results, if any, should be discarded.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +273
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +765
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4616
   System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows) +253
   System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) +295
   System.Data.SqlClient.SqlDataReader.Read() +38
   Sitecore.Data.DataProviders.Sql.SqlDataProvider.QueryFast(String query, CallContext context) +313
   Sitecore.Data.DataProviders.CompositeDataProvider.SelectIDsInternalFast(String query, Boolean singleItemQuery, CallContext context) +395
   Sitecore.Data.DataProviders.CompositeDataProvider.SelectSingleID(String query, CallContext context) +19
   Sitecore.Data.DataProviders.DataProvider.SelectSingleID(String query, CallContext context, DataProviderCollection providers) +127
   Sitecore.Data.DataManager.SelectSingleItem(String query, Boolean& processed) +66
   Sitecore.Data.DefaultDatabase.SelectSingleItem(String query) +75
   ASP._Page_Views_Booking_Common_BookingMaskHeader_cshtml.Execute() in c:\home\site\wwwroot\Views\Booking\Common\BookingMaskHeader.cshtml:39
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +378
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +91
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +793
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +793
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
   System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__5(IAsyncResult asyncResult) +39


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