> Forums > Active Forums > Community Support > activeforums_Security_ModLock constraint
Last Post 30 Oct 2011 12:03 AM by wbp. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Eoghan O'Neill
Customers
Eoghan  O'Neill
Post Count:90

--
28 Feb 2011 05:09 PM
    • Active Forums Version: 4.3.2
    • DotNetNuke Version: 5.5.1
    I today upgraded my DNN Blog module from v4.0.1 to the (just released) v04.01.00. The following error emerged during the install of the v4.1 blog module and it seems to relate to Active Forums ("activeforums_Security_ModLock") was thrown in the installation . I note that, despite this error, the installation ended with the words "installation successful". I also note that already existing blog entries created with the blog module are being built correctly after this istallation. 

    Does the error below reveal an incompatability between AF and the new version of the blog module? 

    InfoStart Sql execution: 04.01.00.SqlDataProvider file
    WarningSQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException (0x80131904): Constraint 'DF_activeforums_Security_ModLock' does not belong to table 'Blog_Blogs'. Could not drop constraint. See previous errors. 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() 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) /*************** TABLES ************************/ DECLARE @defname VARCHAR(100), @cmd VARCHAR(1000) SELECT @defname = sc.name FROM sys.columns st JOIN sys.default_constraints sc ON st.column_id = sc.parent_column_id WHERE st.name = 'EnableTwitterIntegration' SET @cmd = 'ALTER TABLE dbo.Blog_Blogs DROP CONSTRAINT ' + @defname EXEC(@cmd) System.Data.SqlClient.SqlException (0x80131904): The object 'DF_Blog_Blogs_EnableTwitterIntegration' is dependent on column 'EnableTwitterIntegration'. ALTER TABLE DROP COLUMN EnableTwitterIntegration failed because one or more objects access this column. 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() 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) ALTER TABLE dbo.Blog_Blogs DROP COLUMN [EnableTwitterIntegration]
    InfoEnd Sql execution: 04.01.00.SqlDataProvider file
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    28 Feb 2011 05:18 PM
    This is quite interesting. It actually looks like it could be a bug with the installer.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Eoghan O'Neill
    Customers
    Eoghan  O'Neill
    Post Count:90

    --
    28 Feb 2011 05:22 PM
    Thanks Will for the quick reply. Do you think any one getting this error should roll back the site to how it was before this install of the blog module?
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    28 Feb 2011 05:30 PM
    I think you are fine. I'm going to check the bolg module now. A quick look at that SQL script leads me to believe it could be just something with the way the blog module is checking for that constraint.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    wbp
    Customers
    wbp
    Post Count:46

    --
    30 Oct 2011 12:03 AM
    Will, did you verify this or do we need to back out the Blog module update?
    Thanks,
    William
    You are not authorized to post a reply.
    > Forums > Active Forums > Community Support > activeforums_Security_ModLock constraint
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy