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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Errors upgrading from DNN 6.2.5Errors upgrading from DNN 6.2.5
Previous
 
Next
New Post
2/19/2016 9:42 AM
 

Hi, I'm attempting to update an install from 6.2.5. I ran into some issues going straight to 7.3.4 so I'm trying to follow the upgrade path and simply take it to 6.2.8 first, which I believe is the correct step.

I'm unable to even begin the upgrade process (the one straight to 7.3.4 at least completed, but had errors on two of the upgrade steps). I can't allow it to insert a NULL value in the column it seems to want to, as it is a primary key, so I'm not sure the error means what I think it does.

This is as far as I get (debug mode on):

 

Upgrading DotNetNuke

Current Assembly Version: 06.02.08

Current Database Version: 06.02.05



Upgrade Status Report

00:00:00.031 - Upgrading to Version: 06.02.08
00:00:00.374 -   Executing Script: 06.02.06.SqlDataProvider Success

 


Server Error in '/' Application.

Cannot insert the value NULL into column 'VersionId', table 'ebus_e2esummit.dbo.Version'; column does not allow nulls. INSERT fails.
The statement has been terminated.

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.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'VersionId', table 'ebus_e2esummit.dbo.Version'; column does not allow nulls. INSERT fails.
The statement has been terminated.

Source Error:

Line 213:                        SchedulingProvider.Instance().Halt("Stopped by Upgrade Process");
Line 214:
Line 215:                        Upgrade.Upgrade.UpgradeDNN(strProviderPath, DataProvider.Instance().GetVersion());
Line 216:
Line 217:                        //Install optional resources if present

Source File: e:\Sites\Upgrading\e2esummit.com_fresh\Install\Install.aspx.cs    Line: 215

Stack Trace:

[SqlException (0x80131904): Cannot insert the value NULL into column 'VersionId', table 'ebus_e2esummit.dbo.Version'; column does not allow nulls. INSERT fails.
The statement has been terminated.]
   System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1791910
   System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5347106
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +546
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1693
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +275
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +1421
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +177
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) +208
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +163
   Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) +74
   Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +88
   Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) +87
   DotNetNuke.Data.SqlDataProvider.UpdateDatabaseVersion(Int32 Major, Int32 Minor, Int32 Build, String Name) +236
   DotNetNuke.Common.Globals.UpdateDataBaseVersion(Version version) +68
   DotNetNuke.Services.Upgrade.Upgrade.UpgradeVersion(String scriptFile, Boolean writeFeedback) +126
   DotNetNuke.Services.Upgrade.Upgrade.UpgradeDNN(String providerPath, Version dataBaseVersion) +255
   DotNetNuke.Services.Install.Install.UpgradeApplication() in e:\Sites\Upgrading\e2esummit.com_fresh\Install\Install.aspx.cs:215
   DotNetNuke.Services.Install.Install. (EventArgs e) in e:\Sites\Upgrading\e2esummit.com_fresh\Install\Install.aspx.cs:436
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

 

 
New Post
2/19/2016 11:13 AM
 
Did you unblock the upgrade package (right click, file properties, at the bottom of 1st tab), prior to unzipping the files contained?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/19/2016 11:34 AM
 

Thanks for the quick reply, Sebastian. I didn't unblock the file, but I have now and remerged/uploaded and I'm getting the same error.

 

 
New Post
2/20/2016 5:53 AM
 
please check table version in your database.
Column VersionID should be an integer with Identity (1,1) since DNN version one.
Did you transfer DNN using any other technique than database backup and restore before?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/23/2016 12:22 PM
 
This is one of a number of sites I inherited from another hosting company I absorbed, so the entire history isn't known to me. Their typical method seemed to do an install and not ever upgrade (of the 80 sites only two different versions of DNN exist).

This is the version table:
VersionId Major Minor Build Name CreatedDate
1 6 0 0 DNNCORP.CE 2013-01-21 09:13:57.840
2 6 0 1 DNNCORP.CE 2013-01-21 09:13:59.797
3 6 0 2 DNNCORP.CE 2013-01-21 09:13:59.950
4 6 1 0 DNNCORP.CE 2013-01-21 09:14:00.430
5 6 1 1 DNNCORP.CE 2013-01-21 09:14:00.593
6 6 1 2 DNNCORP.CE 2013-01-21 09:14:00.773
7 6 1 3 DNNCORP.CE 2013-01-21 09:14:01.000
8 6 1 4 DNNCORP.CE 2013-01-21 09:14:01.197
9 6 1 5 DNNCORP.CE 2013-01-21 09:14:02.317
10 6 2 0 DNNCORP.CE 2013-06-19 09:59:27.100
11 6 2 1 DNNCORP.CE 2013-06-19 09:59:27.693
12 6 2 2 DNNCORP.CE 2013-06-19 09:59:28.020
13 6 2 3 DNNCORP.CE 2013-06-19 09:59:28.513
14 6 2 4 DNNCORP.CE 2013-06-19 09:59:28.607
15 6 2 5 DNNCORP.CE 2013-06-19 09:59:28.637

I appreciate the help and apologize for the late reply. I'm getting pretty close to just installing a fresh copy of DNN and manually importing pages over so any input you offer is very welcomed.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Errors upgrading from DNN 6.2.5Errors upgrading from DNN 6.2.5


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