Server Error in '/' Application.

No row with the given identifier exists[AfricaNews.Entities.UserInfo#0]

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[AfricaNews.Entities.UserInfo#0]

Source Error:


Line 68:                     if(news.Author != null)
Line 69:                     {
Line 70:                         news.ImagePath = news.Author.ImagePath;
Line 71:                     }
Line 72:                 }

Source File: e:\web\africau1\News\CountryMap.aspx.cs    Line: 70

Stack Trace:


[ObjectNotFoundException: No row with the given identifier exists[AfricaNews.Entities.UserInfo#0]]
   NHibernate.Impl.DefaultEntityNotFoundDelegate.HandleEntityNotFound(String entityName, Object id) +37
   NHibernate.Proxy.AbstractLazyInitializer.CheckTargetState() +48
   NHibernate.Proxy.AbstractLazyInitializer.Initialize() +89
   NHibernate.Proxy.AbstractLazyInitializer.GetImplementation() +10
   NHibernate.ByteCode.Castle.LazyInitializer.Intercept(IInvocation invocation) +123
   Castle.DynamicProxy.AbstractInvocation.Proceed() +73
   UserInfoProxy75af78eff14e41f9a51ae5541bac577f.get_ImagePath() +84
   News_CountryMap.BindNews() in e:\web\africau1\News\CountryMap.aspx.cs:70
   News_CountryMap.Page_Load(Object sender, EventArgs e) in e:\web\africau1\News\CountryMap.aspx.cs:29
   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.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975