Server Error in '/' Application.

No row with the given identifier exists[com.nc.commons.newsmanager.NewsItem#NI2010820029525]

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[com.nc.commons.newsmanager.NewsItem#NI2010820029525]

Source Error:


Line 112:            else if (selectedNewsItemFolderId == null)
Line 113:            {
Line 114:                selectedNewsItem = NewsManagerFacadeAccess.getFacade().getNews(selectedNewsItemId);
Line 115:                selectedNewsItemFolderId = selectedNewsItem.Folder.FolderUniqueId;
Line 116:				analyticsManager.AddRawView(selectedNewsItem);

Source File: c:\inetpub\vhosts\lambbrand.eu\site1\DisplayNewsItem.aspx.cs    Line: 114

Stack Trace:


[ObjectNotFoundException: No row with the given identifier exists[com.nc.commons.newsmanager.NewsItem#NI2010820029525]]
   NHibernate.Impl.DefaultEntityNotFoundDelegate.HandleEntityNotFound(String entityName, Object id) +62
   NHibernate.Event.Default.DefaultLoadEventListener.Load(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) +624
   NHibernate.Event.Default.DefaultLoadEventListener.ProxyOrLoad(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) +237
   NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEvent event, LoadType loadType) +1305
   NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadType loadType) +125
   NHibernate.Impl.SessionImpl.Load(Type clazz, Object id) +258
   Castle.ActiveRecord.ActiveRecordBase.FindByPrimaryKey(Type targetType, Object id, Boolean throwOnNotFound) +208

[NotFoundException: Could not find NewsItem with id NI2010820029525]
   Castle.ActiveRecord.ActiveRecordBase.FindByPrimaryKey(Type targetType, Object id, Boolean throwOnNotFound) +443
   Castle.ActiveRecord.ActiveRecordBase`1.Find(Object id) +86
   com.nc.commons.newsmanager.NewsManagerImpl.getNews(String newsId) +46

[Exception: System Error. Please contact the system administrator. Error in getNews() with newsId [NI2010820029525]. Exception: Could not find NewsItem with id NI2010820029525 Stack Trace:    at Castle.ActiveRecord.ActiveRecordBase.FindByPrimaryKey(Type targetType, Object id, Boolean throwOnNotFound)
   at Castle.ActiveRecord.ActiveRecordBase`1.Find(Object id)
   at com.nc.commons.newsmanager.NewsManagerImpl.getNews(String newsId)]
   com.nc.commons.newsmanager.NewsManagerImpl.getNews(String newsId) +277
   DisplayNewsItem2.Page_Init(Object sender, EventArgs e) in c:\inetpub\vhosts\lambbrand.eu\site1\DisplayNewsItem.aspx.cs:114
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.Page.OnInit(EventArgs e) +12
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378


Version Information: Microsoft .NET Framework Version:2.0.50727.8800; ASP.NET Version:2.0.50727.8762