I get an odd set of errors in the new DNN 8 beta when I make some updates.
Error:
DotNetNuke.Services.Exceptions.ModuleLoadException:
Object reference not set to an instance of an object. --->
System.NullReferenceException: Object reference not set to an instance
of an object.
at DotNetNuke.Modules.Html.HtmlTextController.GetWorkflow(Int32
ModuleId, Int32 TabId, Int32 PortalId)
at DotNetNuke.Modules.Html.HtmlModule.OnInit(EventArgs e)
--- End of inner exception stack trace ---
An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException:
Object reference not set to an instance of an object. --->
System.NullReferenceException: Object reference not set to an instance
of an object.
at DotNetNuke.Modules.Html.HtmlTextController.GetWorkflow(Int32
ModuleId, Int32 TabId, Int32 PortalId)
at DotNetNuke.Modules.Html.HtmlModule.get_ModuleActions()
at
DotNetNuke.UI.Modules.ModuleInstanceContext.LoadActions(HttpRequest
request)
at DotNetNuke.UI.Modules.ModuleInstanceContext.get_Actions()
at DotNetNuke.UI.Containers.ActionBase. (EventArgs e)
--- End of inner exception stack trace ---
Error: DotNetNuke.Services.Exceptions.ModuleLoadException:
The UPDATE statement conflicted with the FOREIGN KEY constraint
"FK_HtmlText_WorkflowStates". The conflict occurred in database
"GotThisIdea", table "dbo.WorkflowStates", column 'StateID'.
The statement has been terminated. --->
System.Data.SqlClient.SqlException: The UPDATE statement conflicted with
the FOREIGN KEY constraint "FK_HtmlText_WorkflowStates". The conflict
occurred in database "GotThisIdea", table "dbo.WorkflowStates", column
'StateID'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection. (SqlException
exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior,
SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader
ds, RunBehavior runBehavior, String resetOptionsString)
at
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean
async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader
ds)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
method, TaskCompletionSource`1 completion, Int32 timeout, Task&
task, Boolean asyncWrite)
at
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1
completion, String methodName, Boolean sendToPipe, Int32 timeout,
Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at PetaPoco.Database.Execute(String sql, Object[] args)
at DotNetNuke.Data.PetaPoco.PetaPocoHelper.ExecuteNonQuery(String
connectionString, CommandType type, String sql, Object[] args)
at
DotNetNuke.Modules.Html.Components.DataProvider.UpdateHtmlText(Int32
ItemID, String Content, String Summary, Int32 StateID, Boolean
IsPublished, Int32 LastModifiedByUserID)
at
DotNetNuke.Modules.Html.HtmlTextController.UpdateHtmlText(HtmlTextInfo
htmlContent, Int32 MaximumVersionHistory)
at DotNetNuke.Modules.Html.HtmlTextController.GetTopHtmlText(Int32
moduleId, Boolean isPublished, Int32 workflowId)
at DotNetNuke.Modules.Html.HtmlModule. (EventArgs e)
--- End of inner exception stack trace ---