Running mojoPortal 2.6.0.0 on MSSQL
ContentWorkflow references a user who has subsequently been deleted. A row in mp_ContentWorkflow has a userguid that dien't exist in mp_Users. The page cannot be loaded, with this in System Log:
2023-01-27 10:17:18,211 ERROR xx.xxx.xx.xxx - en-GB - /mypage - mojoPortal.Web.Global - Referrer(https://mysite.com/Admin/ModulePermissions.aspx?pageid=734&mid=800&p=v) useragent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1518.69
System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider)
at mojoPortal.Business.ContentWorkflow.PopulateFromReader(IDataReader reader)
at mojoPortal.Business.ContentWorkflow.GetWorkInProgress(Guid moduleGuid)