EPiServer CMS8 - Upgraded site throws error in Admin - Manage Website

Vote:
 

Hi All,

Just updated my website using the latest nuget assemblies to EPiServer CMS 8. Fixed up the compilation errors, upgraded the database using the upgrade command in powershell and got the site running successfully. 

When attempting to load Admin --> Config Tab --> Manage Websites

I get the following error:

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.UI.Admin.SiteInformationEdit.AddUrlView_DataBound(Object source, GridViewRowEventArgs e) +444
   System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +313
   System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +4779
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +94
   System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +18
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +221
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +312
   System.Web.UI.Control.DataBindChildren() +12435143
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.Control.DataBindChildren() +12435143
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.Control.DataBindChildren() +12435143
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.Control.DataBindChildren() +12435143
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.Control.DataBindChildren() +12435143
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.Control.DataBindChildren() +12435143
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.Control.DataBindChildren() +12435143
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.Control.DataBindChildren() +12435143
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.Control.PreRenderRecursiveInternal() +113
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297

I also get the same error if I attempt to create a new site, and add a new host name entry for that site.

Interestingly I notice on the CMS 8 Alloy site, there is an additional column showing in the host list that DOES NOT appear in mine - 'Type' which is a drop down offering a choice of either:

1. (BLANK)
2. "Primary"
3. "Redirected (permanent)"
4. "Redirected (temporary)"

...so it looks like to me the upgrade process failed on my DB despite showing no errors in the powershell console.

Is this a known issue? Do i need to raise a ticket?

#118391
Mar 05, 2015 13:11
Vote:
 

Hi, 

Strange that you didn't get any error and still getting this problem. Is it possible to re-run 'update-epidatabase' on a backed-up db and see if that makes any difference. I wouuld also run following views in db to see if there are any null values stored somehow:

VW_EPiServer.Web.SiteDefinition
VW_EPiServer.Web.HostDefinition

Otherwise, open a ticket with deveoper support.

/Shahid

#118402
Mar 05, 2015 14:34
Vote:
 

Thanks Shahid for your reply. Still failed after trying again on a backup - but an interesting observation:

VW_EPiServer.Web.SiteDefinition  - exists in my upgraded database

VW_EPiServer.Web.HostDefinition - DOES NOT exist in my upgraded database

...but it DOES exist in the sample DB.

I can't really understand how this has happened - we've followed the upgrade process exactly with each update to EPiServer.

#118407
Mar 05, 2015 15:39
Vote:
 

OK just re-run an upgrade against a fresh DB, and the views are both there, so ignore please the post above. However I still get the problem when attempting to save the website host definitions - see screenshots below:

- Notice the lack of the 'Type' property - clicking the save icon will cause the NullReferenceException.

And on the alloy sample site:

- we have a type property, and the page works fine.

...so, I still have the problem, but not sure why - is it a potential problem with the ASPX code being used for the manage website dialog not being up-to-date?

Dan

#118410
Mar 05, 2015 16:02
Vote:
 

Sorted - removed and re-added the nuget packages, and now all working again. Thanks.

#118451
Mar 06, 2015 14:19
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.