This project is read-only.
1
Vote

Error view.aspx

description

I have deployed this on visual studio 2010. I managed to create an admin profile. I am able to run the project and add stuff. however for the events whenever I click on an event I have added it breaks the code and sends me to view.aspx to the end of the line of
if (Model.Downloads != null && Model.Downloads.Count < 0)
 
NHibernate.LazyInitializationException was unhandled by user code
Message=Initializing[ClubStarterKit.Domain.Event#2]-failed to lazily initialize a collection of role: ClubStarterKit.Domain.Event.Downloads, no session or session was closed
Source=NHibernate
EntityName=ClubStarterKit.Domain.Event
StackTrace:
   at NHibernate.Collection.AbstractPersistentCollection.ThrowLazyInitializationException(String message)
   at NHibernate.Collection.AbstractPersistentCollection.ThrowLazyInitializationExceptionIfNotConnected()
   at NHibernate.Collection.AbstractPersistentCollection.ReadSize()
   at NHibernate.Collection.PersistentBag.get_Count()
   at ASP.views_events_view_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in c:\Users\.....\Visual Studio 2010\StartPages\clubstarterkit v3 preview\ClubStarterKit.Web\Views\Events\View.aspx:line 53
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at ASP.views_shared_site_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Users\.....\Visual Studio 2010\StartPages\clubstarterkit v3 preview\ClubStarterKit.Web\Views\Shared\Site.Master:line 45
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer)
   at ClubStarterKit.Infrastructure.View.BaseView`1.Render(HtmlTextWriter writer) in C:\Users\....\Visual Studio 2010\StartPages\clubstarterkit v3 preview\ClubStarterKit.Infrastructure\View\BaseView`1.cs:line 70
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
 
If anybody can help it will be appreciated
Thanks

comments