Server Error in '/' Application.

В базе Предмет с идентификатором 197 не существует

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: В базе Предмет с идентификатором 197 не существует

Source Error:


Line 448:			if( ta.Rows.Count == 0)
Line 449:				throw new Exception( String.Format("В базе {0} с идентификатором {1} не существует", m_EntityName, id));
Line 450:			OnLoad( ta.Rows[0]);
Line 451:		}
Line 452:

Source File: d:\Users\vho_nikita_70944\vho_nikita_709440\WWWRoot\App_Code\Components\Virtual\Entity_Subject.cs    Line: 450

Stack Trace:


[Exception: В базе Предмет с идентификатором 197 не существует]
   aneta.Entity.DefaultOnLoadID(String IDFieldName, String TableName, Int32 id) in d:\Users\vho_nikita_70944\vho_nikita_709440\WWWRoot\App_Code\Components\Virtual\Entity_Subject.cs:450
   ssk.ssSuiseki.OnLoad(Int32 _id) in d:\Users\vho_nikita_70944\vho_nikita_709440\WWWRoot\App_Code\Components\Children\Suiseki.cs:461
   aneta.Entity.Load(Int32 _id) in d:\Users\vho_nikita_70944\vho_nikita_709440\WWWRoot\App_Code\Components\Virtual\Entity_Subject.cs:349
   aneta.Entity..ctor(Int32 _id, Boolean load) in d:\Users\vho_nikita_70944\vho_nikita_709440\WWWRoot\App_Code\Components\Virtual\Entity_Subject.cs:316
   aneta.Entity..ctor(Int32 _id) in d:\Users\vho_nikita_70944\vho_nikita_709440\WWWRoot\App_Code\Components\Virtual\Entity_Subject.cs:310
   aneta.Subject..ctor(Int32 id) in d:\Users\vho_nikita_70944\vho_nikita_709440\WWWRoot\App_Code\Components\Virtual\Entity_Subject.cs:509
   ssk.ssSuiseki..ctor(Int32 _id) in d:\Users\vho_nikita_70944\vho_nikita_709440\WWWRoot\App_Code\Components\Children\Suiseki.cs:412
   Default2.Page_Load(Object sender, EventArgs e) in d:\Users\vho_nikita_70944\vho_nikita_709440\WWWRoot\mStone.aspx.cs:23
   System.Web.UI.Control.OnLoad(EventArgs e) +103
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3811


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