I just upgrade from DNN 4.5.5 to DNN 4.8.2. I can access my site (www.northwestdistrictassociation.org), but whenever I select Login, I receive the error:
A critical error has occurred.
Object reference not set to an instance of an object.
During the upgrade process, there was an error recorded in the log for the upgrade from 4.5.5 to 4.6.0:
System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'ModuleID', table 'nwda.dbo.ModuleSettings'; column does not allow nulls. UPDATE fails.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)
When I check my Event Log in the database, I find the following log explanation:
Object reference not set to an instance of an object.</PropertyValue></LogProperty><LogProperty><PropertyName>FileName</PropertyName>
<PropertyValue /></LogProperty><LogProperty><PropertyName>FileLineNumber</PropertyName><PropertyValue>0</PropertyValue>
</LogProperty><LogProperty><PropertyName>FileColumnNumber</PropertyName><PropertyValue>0</PropertyValue></LogProperty><LogProperty>
<PropertyName>Method</PropertyName><PropertyValue>DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_AuthenticationModuleID</PropertyValue></LogProperty>
<LogProperty><PropertyName>StackTrace</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>Message</PropertyName>
<PropertyValue>DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_AuthenticationModuleID()
at DotNetNuke.Services.Authentication.AuthenticationConfigBase..ctor(Int32 portalID)
at DotNetNuke.Services.Authentication.AuthenticationConfig..ctor(Int32 portalID)
at DotNetNuke.Services.Authentication.AuthenticationConfig.GetConfig(Int32 portalId)
at DotNetNuke.Modules.Admin.Authentication.Login.get_Enabled()
at DotNetNuke.Modules.Admin.Authentication.Login.BindLogin()
at DotNetNuke.Modules.Admin.Authentication.Login.ShowPanel()
at DotNetNuke.Modules.Admin.Authentication.Login.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---</PropertyValue></LogProperty><LogProperty><PropertyName>Source</PropertyName><PropertyValue /></LogProperty></LogProperties>
Cannot insert the value NULL into column 'ModuleID'
There appears to be an issue with the authentication module that is causing this, but I can't figure it out. I have:
- Double and trible checked to ensure that all files copied properly.
- Checked to make sure that my keys are correct.
- Made sure that I can view the basic templates for DNN (Horizontal blue)
Any help on this would be much appreciated.
Thanks,
Craig