Server Error in '/' Application.

No row with the given identifier exists: 9, of class: CanDagarslani.Models.Album

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: NHibernate.ObjectNotFoundException: No row with the given identifier exists: 9, of class: CanDagarslani.Models.Album

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:


[ObjectNotFoundException: No row with the given identifier exists: 9, of class: CanDagarslani.Models.Album]
   NHibernate.ObjectNotFoundException.ThrowIfNull(Object o, Object id, Type clazz) +55
   NHibernate.Impl.SessionImpl.Load(Type clazz, Object id) +87
   Castle.ActiveRecord.ActiveRecordBase.FindByPrimaryKey(Type targetType, Object id, Boolean throwOnNotFound) +101

[NotFoundException: Could not find Album with id 9]
   Castle.ActiveRecord.ActiveRecordBase.FindByPrimaryKey(Type targetType, Object id, Boolean throwOnNotFound) +288
   Castle.ActiveRecord.ActiveRecordBase`1.Find(Object id) +60
   CanDagarslani.Controllers.Manage.HomeController.index(Int32 albumID, Int32 yearID) +657

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   Castle.MonoRail.Framework.ControllerLifecycleExecutor.PerformErrorHandling() +77
   Castle.MonoRail.Framework.ControllerLifecycleExecutor.ProcessSelectedAction(IDictionary actionArgs) +550
   Castle.MonoRail.Framework.MonoRailHttpHandler.Process(IRailsEngineContext context) +354
   Castle.MonoRail.Framework.MonoRailHttpHandler.ProcessRequest(HttpContext context) +24
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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