Since 2 days, I am trying to solve a problem and I could use some input. I had already noticed that there was a problem registring a new user, but I was hoping to solve this next weekend. For the rest, the new installation seemed to work fine. The version is still 05.04.04 and I intend to upgrade after the release of 05.05.01 which may be this week, I read in some blog.
Then a much more disabilitating error came up. I can no longer create new modules on my tab pages. When I try to "Add Module to Page" I get this error:
An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot insert the value NULL into column 'IsDeleted', table 'KhmerSupport.dbo.TabModules'; column
does not allow nulls. INSERT fails. The statement has been terminated. ---> System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'IsDeleted', table 'KhmerSupport.dbo.TabModules'; column does not allow nulls. INSERT 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.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Data.SqlDataProvider.AddTabModule(Int32 TabId, Int32 ModuleId, Int32 ModuleOrder, String PaneName, Int32 CacheTime, String CacheMethod, String Alignment, String Color, String Border, String IconFile, Int32 Visibility, String ContainerSrc, Boolean DisplayTitle, Boolean DisplayPrint, Boolean DisplaySyndicate, Boolean IsWebSlice, String WebSliceTitle, DateTime WebSliceExpiryDate, Int32 WebSliceTTL, Int32 createdByUserID) at DotNetNuke.Entities.Modules.ModuleController.AddModule(ModuleInfo objModule) at DotNetNuke.UI.ControlPanels.ControlPanelBase.AddNewModule(String title, Int32 desktopModuleId, String paneName, Int32 position, ViewPermissionType permissionType, String align) at DotNetNuke.UI.ControlPanels.IconBar.AddModule_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---
I have mainly been looking at user permissions for the login account. But as far as I understand, all the account needs is db_owner membership, it does not need to have ownership of this role.
I have come to doubt my first conclusion that the error is related to permissions. It might be related to the transfer of the database and something that went wrong there. I still have a working copy locally and the changes are minor and stored separately, so I can start the process over again. But some advice about this error would be very welcome.
____________________________________
The one-eyed in the land of the blind.
|