Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...[DUPLICATE] Upgrading from 4.5.3 to 4.6.0 Produces [DUPLICATE] Upgrading from 4.5.3 to 4.6.0 Produces 'Value cannot be null' Error...
Previous
 
Next
New Post
9/18/2007 9:49 PM
 

Hello,

When upgrading from Dotnetnuke version 4.5.3 to 4.6.0 the error message below is produced. I have triple-checked my config file and all is well there. I also checked the permissions set on the files and all is OK there as well (with NETWORK_SERVICE having the appropriate permissions). Any ideas?

Thank you for your time.

Regards,

Christopher Koeber

Error Message:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type

Source Error:

Server Error in '/' Application.

 

Value cannot be null.
Parameter name: type

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[ArgumentNullException: Value cannot be null. Parameter name: type] System.Activator.CreateInstance(Type type, Boolean nonPublic) +2768503 DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) +582 DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) +17 DotNetNuke.Security.Membership.Data.DataProvider.CreateProvider() +38 DotNetNuke.Security.Membership.Data.DataProvider..cctor() +13 [TypeInitializationException: The type initializer for 'DotNetNuke.Security.Membership.Data.DataProvider' threw an exception.] DotNetNuke.Security.Membership.Data.DataProvider.Instance() +0 DotNetNuke.Security.Membership.AspNetMembershipProvider..cctor() +5 [TypeInitializationException: The type initializer for 'DotNetNuke.Security.Membership.AspNetMembershipProvider' threw an exception.] [TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103 System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261 System.Activator.CreateInstance(Type type, Boolean nonPublic) +66 DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) +582 DotNetNuke.Security.Membership.MembershipProvider.CreateProvider() +38 DotNetNuke.Security.Membership.MembershipProvider..cctor() +13 [TypeInitializationException: The type initializer for 'DotNetNuke.Security.Membership.MembershipProvider' threw an exception.] DotNetNuke.Security.Membership.MembershipProvider.Instance() +0 DotNetNuke.Entities.Users.UserController..cctor() +5 [TypeInitializationException: The type initializer for 'DotNetNuke.Entities.Users.UserController' threw an exception.] DotNetNuke.Entities.Users.UserController.GetUserCountByPortal(Int32 portalId) +0 DotNetNuke.Entities.Portals.PortalInfo.get_Users() +17 DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +1302 DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +83 DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +2848 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


 

Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832




Regards,
Christopher Koeber
 
New Post
9/21/2007 7:13 AM
 

Yeah, I had that one.

I forgot to set the proper rights to the folders containing the DNN files (i upgraded by copying all files to a new folder), which resultet in the SQL upgrade scripts not running.

What you might have at this time, is a DNN site where the files are upgraded to 4.6.0 but the database is not. Check your database log file (4-6-0) and see what is says.

If your problem is caused by the upgrade SQL scripts not running (for whatever reason) here is the fix:

1.) Connect to the dabase using any SQL tool. Query Analyser, Access, whatever.
2.) See the version information by executing the following: SELECT * FROM version
3.) If there is a record (usually the latest addition, at the bottom of your result set) stating that your version is 4.6.0 but you know from your database log file that the upgrade was not complete, then delete the last record by executing the following: DELETE FROM version WHERE major=4 AND minor=6 AND build=0
4.) Run the upgrade again, by navigating your site to the upgrade files (example: http://127.0.0.1/Install/Install.aspx?mode=upgrade)
5.) Wait

Your upgrade should now be completed correctly.

brgds

- Jesper

 
New Post
9/27/2007 7:22 PM
 

Hi Jesper,

I had the same error when trying to upgrade to 4.6.0.  Unfortunately, your solution did not work for me. 

After I deleted the version record and completed step 4, I had another error during the upgrade.  See FIRST ERROR LOG below. 

Followin the log, I deleted all of the duplicate records, deleted the version record and tried step 4 again..  This time I got the SECOND ERROR LOG below. 

So then I deleted all of the records shown in both logs, deleted the version log and tried step 4 again. 

This time though there were no installation errors, when I accessed my portal, I received the very first error message again.  AUGH!

I know just enough about DNN and databases to be dangerous.  If you have any suggestions, can you please put it in "Fixes for Dummies" format. 

Thanks so much for your help!

Warm regards

Rose Marie

FIRST ERROR LOG *********************************************

System.Data.SqlClient.SqlException: Violation of UNIQUE KEY constraint 'IX_dnn_ModuleControls'. Cannot insert duplicate key in object 'dnn_ModuleControls'.
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)


declare @ModuleDefID int

select @ModuleDefID = ModuleDefID
from   dbo.dnn_ModuleDefinitions
where  FriendlyName = 'Module Definitions'

insert into dbo.dnn_ModuleControls ( ModuleDefID, ControlKey, ControlTitle, ControlSrc, IconFile, ControlType, ViewOrder, HelpUrl, SupportsPartialRendering )
values ( @ModuleDefID, 'Import', 'Import Module Definition', 'Admin/ModuleDefinitions/ImportModuleDefinition.ascx', NULL, 3, NULL, NULL, 0 )



System.Data.SqlClient.SqlException: There is already an index on table 'dnn_TabPermission' named 'IX_dnn_TabPermission_Permission'.
   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)


/* add indexes to TabPermissions table for foreign keys */
CREATE NONCLUSTERED INDEX IX_dnn_TabPermission_Permission ON dbo.dnn_TabPermission
 (
 PermissionID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_TabPermission' named 'IX_dnn_TabPermission_Tabs'.
   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)

CREATE NONCLUSTERED INDEX IX_dnn_TabPermission_Tabs ON dbo.dnn_TabPermission
 (
 TabID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_TabPermission' named 'IX_dnn_TabPermission_Users'.
   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)

CREATE NONCLUSTERED INDEX IX_dnn_TabPermission_Users ON dbo.dnn_TabPermission
 (
 UserID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_TabPermission' named 'IX_dnn_TabPermission_Roles'.
   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)

CREATE NONCLUSTERED INDEX IX_dnn_TabPermission_Roles ON dbo.dnn_TabPermission
 (
 RoleID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_ModulePermission' named 'IX_dnn_ModulePermission_Permission'.
   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)


/* add indexes to ModulePermissions table for foreign keys */
CREATE NONCLUSTERED INDEX IX_dnn_ModulePermission_Permission ON dbo.dnn_ModulePermission
 (
 PermissionID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_ModulePermission' named 'IX_dnn_ModulePermission_Modules'.
   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)

CREATE NONCLUSTERED INDEX IX_dnn_ModulePermission_Modules ON dbo.dnn_ModulePermission
 (
 ModuleID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_ModulePermission' named 'IX_dnn_ModulePermission_Users'.
   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)

CREATE NONCLUSTERED INDEX IX_dnn_ModulePermission_Users ON dbo.dnn_ModulePermission
 (
 UserID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_ModulePermission' named 'IX_dnn_ModulePermission_Roles'.
   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)

CREATE NONCLUSTERED INDEX IX_dnn_ModulePermission_Roles ON dbo.dnn_ModulePermission
 (
 RoleID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_FolderPermission' named 'IX_dnn_FolderPermission_Permission'.
   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)


/* add indexes to FolderPermissions table for foreign keys */
CREATE NONCLUSTERED INDEX IX_dnn_FolderPermission_Permission ON dbo.dnn_FolderPermission
 (
 PermissionID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_FolderPermission' named 'IX_dnn_FolderPermission_Modules'.
   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)

CREATE NONCLUSTERED INDEX IX_dnn_FolderPermission_Modules ON dbo.dnn_FolderPermission
 (
 FolderID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_FolderPermission' named 'IX_dnn_FolderPermission_Users'.
   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)

CREATE NONCLUSTERED INDEX IX_dnn_FolderPermission_Users ON dbo.dnn_FolderPermission
 (
 UserID
 ) ON [PRIMARY]


System.Data.SqlClient.SqlException: There is already an index on table 'dnn_FolderPermission' named 'IX_dnn_FolderPermission_Roles'.
   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)

CREATE NONCLUSTERED INDEX IX_dnn_FolderPermission_Roles ON dbo.dnn_FolderPermission
 (
 RoleID
 ) ON [PRIMARY]

END OF FIRST ERROR LOG *****************************************************

SECOND ERROR LOG BELOW *************************************************

System.Data.SqlClient.SqlException: Violation of UNIQUE KEY constraint 'IX_dnn_ModuleControls'. Cannot insert duplicate key in object 'dnn_ModuleControls'.
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)


declare @ModuleDefID int

select @ModuleDefID = ModuleDefID
from   dbo.dnn_ModuleDefinitions
where  FriendlyName = 'Module Definitions'

insert into dbo.dnn_ModuleControls ( ModuleDefID, ControlKey, ControlTitle, ControlSrc, IconFile, ControlType, ViewOrder, HelpUrl, SupportsPartialRendering )
values ( @ModuleDefID, 'Import', 'Import Module Definition', 'Admin/ModuleDefinitions/ImportModuleDefinition.ascx', NULL, 3, NULL, NULL, 0 )

END OF SECOND ERROR LOG ***********************************************************

 

 
New Post
9/29/2007 2:54 PM
 

Splatman is my hero!  Fix worked like a charm, same issue.

 
New Post
9/30/2007 8:35 AM
 

Hi Rose Marie,

Looks like your database is in a mess. Most of the errors you have posted are due to objects allready existing in your database, so in theory you could ignore those. They are often a sign that the SQL statements have been run before, and don't need to be run again (example: a statement attempting to create a new index gets an error because the new index was actually already created by a previous execution of the same statement).

What is the error displayed by your portal?

- Jesper

P.S.
Btw, please don't expect me to be a wiz with DNN. I am really not, I get help from other people (thanks John!). I just have a little more time to help the community with the occasional post in the forums when I come accros a problem I have had myself.
/JS

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...[DUPLICATE] Upgrading from 4.5.3 to 4.6.0 Produces [DUPLICATE] Upgrading from 4.5.3 to 4.6.0 Produces 'Value cannot be null' Error...


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out