The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

When upgrading the BADNUG site, I encountered the following error:



DotNetNuke Upgrade Error
The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )


ERROR: Could not connect to database.


The stored procedure ‘dbo.GetPortalAliasByPortalID’ doesn’t exist.


I found a solution that works at http://forums.asp.net/958251/ShowPost.aspx.  What worked for me was changing UseDnnConfig to false.  Once I made that change, the upgrade completed normally.