Server Error in '/' Application.

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

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#16629]

Source Error:


Line 120:            if (news.Author != null)
Line 121:            {
Line 122:                LblAuthor.Text = news.Author.UserName + ",";
Line 123:                LblUserCityCountry.Text = news.UserCityCountry;
Line 124:                HlAddFriend.Text = "Add " + news.Author.UserName + " as a Friend";

Source File: e:\web\africau1\Controls\News\PrintNews.ascx.cs    Line: 122

Stack Trace:


[ObjectNotFoundException: No row with the given identifier exists[AfricaNews.Entities.UserInfo#16629]]
   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_UserName() +84
   Controls_News_PrintNews.BindNews() in e:\web\africau1\Controls\News\PrintNews.ascx.cs:122
   News_Print.Page_Load(Object sender, EventArgs e) in e:\web\africau1\News\Print.aspx.cs:21
   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