|
|
Joined: 12/19/2011
Posts: 1
|
|
|
Hi there
I am trying to install forum module 05.00.03 to DNN 6.1.1 and I get the error below. How do I proceed to get a forum module on my website?
StartJob |
Starting Installation |
Info |
Starting Installation - DNN_Forum |
Info |
Starting Installation - Script |
Info |
Begin Sql execution |
Info |
Creating backup of previous version - 03.00.00.SqlDataProvider |
Info |
Created - 03.00.00.SqlDataProvider |
Info |
Executing 03.00.00.SqlDataProvider |
Info |
Start Sql execution: 03.00.00.SqlDataProvider file |
Failure |
SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Could not drop object 'dbo.Forum_Forums' because it is referenced by a FOREIGN KEY constraint. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) if exists (select * from dbo.sysobjects where id = object_id(N'Forum_Forums') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table dbo.Forum_Forums System.Data.SqlClient.SqlException: Could not drop object 'dbo.Forum_Threads' because it is referenced by a FOREIGN KEY constraint. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) if exists (select * from dbo.sysobjects where id = object_id(N'Forum_Threads') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table dbo.Forum_Threads System.Data.SqlClient.SqlException: There is already an object named 'Forum_Forums' in the database. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) CREATE TABLE dbo.Forum_Forums ( [ForumID] [int] IDENTITY (1, 1) NOT NULL , [GroupID] [int] NOT NULL , [IsActive] [bit] NOT NULL , [ParentID] [int] NOT NULL , [Name] [nvarchar] (255) NOT NULL , [Description] [nvarchar] (2048) NULL , [CreatedDate] [datetime] NULL , [CreatedByUser] [int] NULL , [UpdatedByUser] [int] NULL , [UpdatedDate] [datetime] NULL , [IsModerated] [bit] NULL , [DaysToView] [int] NULL , [SortOrder] [int] NULL , [TotalPosts] [int] NULL , [TotalThreads] [int] NULL , [EnablePostStatistics] [bit] NULL , [EnableAutoDelete] [bit] NULL , [AutoDeleteThreshold] [int] NULL , [MostRecentPostID] [int] NULL , [MostRecentThreadID] [int] NULL , [MostRecentPostAuthorID] [int] NULL , [MostRecentPostDate] [datetime] NULL , [PostsToModerate] [int] NULL , [ForumType] [int] NULL , [IsIntegrated] [bit] NULL , [IntegratedModuleID] [int] NULL , [IntegratedObjects] [nvarchar] (255) NULL , [IsPrivate] [bit] NULL , [AuthorizedRoles] [nvarchar] (255) NULL , [AuthorizedEditRoles] [nvarchar] (255) NULL ) ON [PRIMARY] System.Data.SqlClient.SqlException: There is already an object named 'Forum_Threads' in the database. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) CREATE TABLE dbo.Forum_Threads ( [ThreadID] [int] NOT NULL , [ForumID] [int] NOT NULL , [Views] [int] NULL , [LastPostedPostID] [int] NULL , [Replies] [int] NULL , [IsPinned] [bit] NULL , [PinnedDate] [datetime] NULL , [Image] [nvarchar] (255) NULL , [ObjectTypeCode] [int] NULL , [ObjectID] [char] (10) NULL ) ON [PRIMARY] System.Data.SqlClient.SqlException: Table 'Forum_Forums' already has a primary key defined on it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) ALTER TABLE dbo.Forum_Forums WITH NOCHECK ADD CONSTRAINT PK_Forum_Forums PRIMARY KEY CLUSTERED ( [ForumID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Table 'Forum_Threads' already has a primary key defined on it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) ALTER TABLE dbo.Forum_Threads WITH NOCHECK ADD CONSTRAINT PK_Forum_Threads PRIMARY KEY CLUSTERED ( [ThreadID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Column already has a DEFAULT bound to it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) ALTER TABLE dbo.Forum_Forums WITH NOCHECK ADD CONSTRAINT DF_Forum_Forums_ParentID DEFAULT (0) FOR [GroupID], CONSTRAINT DF_Forum_Forums_IsActive DEFAULT (1) FOR [IsActive], CONSTRAINT DF_Forum_Forums_ParentID_1 DEFAULT (0) FOR [ParentID], CONSTRAINT DF_Forum_Forums_DateCreated DEFAULT (getdate()) FOR [CreatedDate], CONSTRAINT DF_Forum_Forums_IsModerated DEFAULT (0) FOR [IsModerated], CONSTRAINT DF_Forum_Forums_DaysToView DEFAULT (0) FOR [DaysToView], CONSTRAINT DF_Forum_Forums_SortOrder DEFAULT (0) FOR [SortOrder], CONSTRAINT DF_Forum_Forums_TotalPosts DEFAULT (0) FOR [TotalPosts], CONSTRAINT DF_Forum_Forums_TotalThreads DEFAULT (0) FOR [TotalThreads], CONSTRAINT DF_Forum_Forums_EnablePostStatistics DEFAULT (0) FOR [EnablePostStatistics], CONSTRAINT DF_Forum_Forums_EnableAutoDelete DEFAULT (0) FOR [EnableAutoDelete], CONSTRAINT DF_Forum_Forums_AutoDeleteThreshold DEFAULT (90) FOR [AutoDeleteThreshold], CONSTRAINT DF_Forum_Forums_MostRecentPostID DEFAULT (0) FOR [MostRecentPostID], CONSTRAINT DF_Forum_Forums_MostRecentThreadID DEFAULT (0) FOR [MostRecentThreadID], CONSTRAINT DF_Forum_Forums_MostRecentPostAuthorID DEFAULT (0) FOR [MostRecentPostAuthorID], CONSTRAINT DF_Forum_Forums_MostRecentPostDate DEFAULT (getdate()) FOR [MostRecentPostDate], CONSTRAINT DF_Forum_Forums_PostsToModerate DEFAULT (0) FOR [PostsToModerate], CONSTRAINT DF_Forum_Forums_ForumType DEFAULT (0) FOR [ForumType], CONSTRAINT DF_Forum_Forums_IsIntergrated DEFAULT (0) FOR [IsIntegrated], CONSTRAINT DF_Forum_Forums_IntergratedGallery DEFAULT (0) FOR [IntegratedModuleID], CONSTRAINT DF_Forum_Forums_IsPrivate DEFAULT (0) FOR [IsPrivate], CONSTRAINT IX_Forum_Forums UNIQUE NONCLUSTERED ( [ForumID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Column already has a DEFAULT bound to it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) ALTER TABLE dbo.Forum_Threads WITH NOCHECK ADD CONSTRAINT DF_Forum_Threads_Replies DEFAULT (0) FOR [ForumID], CONSTRAINT DF_Forum_Threads_Views DEFAULT (0) FOR [Views], CONSTRAINT DF_Threads_LastPostedPostID DEFAULT (0) FOR [LastPostedPostID], CONSTRAINT DF_Threads_ForumID DEFAULT (0) FOR [Replies], CONSTRAINT DF_Forum_Threads_IsPinned DEFAULT (0) FOR [IsPinned], CONSTRAINT DF_Forum_Threads_PinnedDate DEFAULT (getdate()) FOR [PinnedDate], CONSTRAINT IX_Forum_Threads UNIQUE NONCLUSTERED ( [ThreadID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Invalid column name 'Image'. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) CREATE PROCEDURE dbo.Forum_AA_ThreadUpdate ( @ThreadID int, @PostID int, @IsPinned bit, @PinnedDate datetime, @Image nvarchar(255), @Action nvarchar(10) ) AS IF @Action = 'postadd' BEGIN UPDATE Forum_Threads SET [LastPostedPostID] = @PostID, [Image] = @Image, [IsPinned] = @IsPinned, [PinnedDate] = @PinnedDate, [Replies] = ((SELECT [Replies] FROM Forum_Threads (nolock) WHERE [ThreadID] = @ThreadID) + 1) WHERE [ThreadID] = @ThreadID END IF @Action = 'postedit' BEGIN -- edit the first post of this thread UPDATE Forum_Threads SET [Image] = @Image, [IsPinned] = @IsPinned, [PinnedDate] = @PinnedDate WHERE [ThreadID] = @ThreadID END IF @Action = 'postdelete' BEGIN DECLARE @LastPostID int -- Get another lastpost to update thread info SET @LastPostID = (SELECT MAX([PostID]) FROM Forum_Posts (nolock) WHERE [ThreadID] = @ThreadID) Print 'Last post id' + CONVERT(varchar, @LastPostID) UPDATE Forum_Threads SET [LastPostedPostID] = @LastPostID, [Image] = @Image, [IsPinned] = @IsPinned, [PinnedDate] = @PinnedDate, [Replies] = ((SELECT [Replies] FROM Forum_Threads (nolock) WHERE [ThreadID] = @ThreadID) - 1) WHERE [ThreadID] = @ThreadID END |
Info |
End Sql execution: 03.00.00.SqlDataProvider file |
Info |
Finished Sql execution |
Failure |
Installation Failed - Script |
Info |
Installation Failed - DNN_Forum |
Info |
Deleted temporary install folder |
EndJob |
Installation Failed |
|
|
|
|