Server Error in '/' Application.

Transaction (Process ID 118) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

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: DatabaseException: Transaction (Process ID 118) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

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:


[DatabaseException: Transaction (Process ID 118) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.]
   Database.ExecuteScalar(String SQL, Int32 Timeout) +332
   News.NewsCommentType.GetAverageRating(Database DB, Int32 SiteId, Int32 UniqueId) in F:\agent2018\_work\1444\s\modules\News\Tools\NewsCommentType.vb:120
   Controls.Comments.RatingView.GetAverageRating(Database DB, Int32 ToolId, Int32 KeyId) in F:\agent2018\_work\1444\s\web\controls\comments\RatingView.ascx.vb:59
   Controls.News.NewsDetail.Page_Load(Object sender, EventArgs e) in F:\agent2018\_work\1444\s\web\modules\news\NewsDetail.ascx.vb:74
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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