Hang on Install at 'creating default content'

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/21/2011 2:38:51 AM
Gravatar
Total Posts 5

Hang on Install at 'creating default content'

I have developed a site with a prior source version with no issues so I know my way around a little. Grabbed the latest source from the repository, set up the database, built the whole solution, set up the user.config for a new db and let 'er rip locally (Win7 connected to a remote SQL2005 with my hosting company). All was good until 'No pages found so creating default content...' and then the install just hung eternally.

I can log into the site and get to the home page - but there are no pages setup at all, not even a home page really (there is no admin item for 'Edit This Page' etc.)

During setup file permissions, db connection, etc. all was good.

Debugger shows the following:

---- DEBUG ASSERTION FAILED ----
---- Assert Short Message ----
parameter's name doesn't match cached parameters
---- Assert Long Message ----


    at SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, String typeName, Int32 size, Byte precision, ParameterDirection dir, Object value, Boolean sizeProvided, Boolean precisionProvided)  W:\NewEchem\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(135)
    at SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, ParameterDirection dir, Object value)  W:\NewEchem\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(91)
    at DBPageSettings.Create(Int32 siteId, Int32 parentId, String pageName, String pageTitle, String skin, Int32 pageOrder, String authorizedRoles, String editRoles, String draftEditRoles, String createChildPageRoles, String createChildDraftRoles, Boolean requireSsl, Boolean allowBrowserCache, Boolean showBreadcrumbs, Boolean showChildPageBreadcrumbs, String pageKeyWords, String pageDescription, String pageEncoding, String additionalMetaTags, Boolean useUrl, String url, Boolean openInNewWindow, Boolean showChildPageMenu, Boolean hideMainMenu, Boolean includeInMenu, String menuImage, String changeFrequency, String siteMapPriority, Guid pageGuid, Guid parentGuid, Boolean hideAfterLogin, Guid siteGuid, String compiledMeta, DateTime compiledMetaUtc, Boolean includeInSiteMap, Boolean isClickable, Boolean showHomeCrumb, Boolean isPending, String canonicalOverride, Boolean includeInSearchMap, Boolean enableComments, Boolean includeInChildSiteMap, Boolean expandOnSiteMap, Guid pubTeamId, String bodyCssClass, String menuCssClass)  W:\NewEchem\mojoPortal.Data.MSSQL\dbPageSettings.cs(129)
    at PageSettings.Create()  W:\NewEchem\mojoPortal.Business\PageSettings.cs(628)
    at PageSettings.Save()  W:\NewEchem\mojoPortal.Business\PageSettings.cs(794)
    at mojoSetup.CreatePage(SiteSettings siteSettings, ContentPage contentPage, PageSettings parentPage)  W:\NewEchem\Web\Components\mojoSetup.cs(796)
    at mojoSetup.SetupDefaultContentPages(SiteSettings siteSettings)  W:\NewEchem\Web\Components\mojoSetup.cs(730)
    at SetupHome.RunSetup()  W:\NewEchem\Web\Setup\Default.aspx.cs(214)
    at SetupHome.Page_Load(Object sender, EventArgs e)  W:\NewEchem\Web\Setup\Default.aspx.cs(88)
    at Control.OnLoad(EventArgs e) 
    at Control.LoadRecursive() 
    at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
    at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
    at Page.ProcessRequest() 
    at Page.ProcessRequestWithNoAssert(HttpContext context) 
    at Page.ProcessRequest(HttpContext context) 
    at setup_default_aspx.ProcessRequest(HttpContext context)  d:\Users\Michael\AppData\Local\Temp\Temporary ASP.NET Files\root\c94f957a\73d6461c\App_Web_bnvfram4.0.cs
    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
    at ApplicationStepManager.ResumeSteps(Exception error) 
    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) 
    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) 
    at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) 
    at HttpRuntime.ProcessRequest(HttpWorkerRequest wr) 
    at Request.Process() 
    at Host.ProcessRequest(Connection conn) 

The thread '<No Name>' (0x18bc) has exited with code 0 (0x0).
The thread '<No Name>' (0x1bd8) has exited with code 0 (0x0).
The thread '<No Name>' (0x930) has exited with code 0 (0x0)...

Any idea where I can look around to see what's up?

Thanks.

Michael

P.S. Like the new site design.

 

5/21/2011 2:54:08 AM
Gravatar
Total Posts 5

Re: Hang on Install at 'creating default content'

Update - set solution to Release instead of Debug, cleaned and rebuilt, and was able to get setup to complete with default content. Set all back to Debug and rebuilt and hangs when trying to add a new page with same type of error.

M

5/21/2011 6:36:55 AM
Gravatar
Total Posts 18439

Re: Hang on Install at 'creating default content'

Hi Michael,

Take a look at the script

/Setup/applications/mojoportal-core/SchemaUpgradeScripts/mssql/2.3.6.5.config

There are 2 alter procedure statements in there that correspond to the procedures for inserting and updating pages.

Can you try running those manually from query analyzer and then recycle the app and see if that solves it?

Best,

Joe

5/22/2011 12:52:07 AM
Gravatar
Total Posts 5

Re: Hang on Install at 'creating default content'

Joe,

Found it. The parameters were out of order in mojoPortal.Data(MSSQL).DBPageSettings.Insert

Around line 129, had to move @ExpandOnSiteMap to after @IncludeInChildSiteMap

Michael

P.S. You are awesome for all the work you with this.

5/22/2011 6:58:16 AM
Gravatar
Total Posts 18439

Re: Hang on Install at 'creating default content'

Hi Michael,

Thanks for finding this problem. I have fixed it in my copy and will commit to the repository later today.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.