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 ...Trouble upgrading from 4.0.2 to 4.6.2Trouble upgrading from 4.0.2 to 4.6.2
Previous
 
Next
New Post
4/26/2008 9:29 PM
 

The title summarizes the problem.

I start at 4.0.2

Upgrade to 4.4.0 is fine.

Upgrade from 4.4.0 to 4.5.0 is fine.

I then try to upgrade from 4.5.0 to 4.6.2 and get this error (after installing the upgrade files, modifying web.config, and then browsing to the site).  Any help will be appreciated ...

Server Error in '/Finder_Website' Application.

Value cannot be null.
Parameter name: type

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:

Line 80: 
Line 81: 'Determine the Upgrade status and redirect to Install.aspx
Line 82: Select Case GetUpgradeStatus()
Line 83: Case Globals.UpgradeStatus.Install
Line 84: If AutoUpgrade Then

Source File: C:\Documents and Settings\Joe\Desktop\Finder_WebSite\App_Code\Global.asax.vb    Line: 82

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) +582
DotNetNuke.Data.DataProvider.CreateProvider() +47
DotNetNuke.Data.DataProvider..cctor() +13

[TypeInitializationException: The type initializer for 'DotNetNuke.Data.DataProvider' threw an exception.]
DotNetNuke.Common.Globals.GetUpgradeStatus() +67
DotNetNuke.Common.Global.CheckVersion() in C:\Documents and Settings\Joe\Desktop\Finder_WebSite\App_Code\Global.asax.vb:82
DotNetNuke.Common.Global.Application_Start(Object Sender, EventArgs E) in C:\Documents and Settings\Joe\Desktop\Finder_WebSite\App_Code\Global.asax.vb:310




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
4/27/2008 11:42 AM
 

Hi Joe,

Your exception is telling us that DotNetNuke is choking when it tries to create its DataProvider.  Check your web.config to ensure that you are specifying the DataProvider that you intended (almost certainly DotNetNuke.Data.SqlDataProvider) and that its assembly exists in your bin directory.  The file you should look for is DotNetNuke.SqlDataProvider.dll.

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
4/27/2008 3:19 PM
 

Thanks.  I understand your answer, but I think that there something going on that I really don't understand.

I started with a version that was 4.0.2.  I can upgrade to any version up to 4.5.5.  When I try to upgrade to 4.6.0 or anything higher, the error that I mentioned in the original post occurs.  So ... there's something going on that I'm not doing correctly in my web.config file.  But, I'm making the same sorts of changes to the file -- copying over the connection strings, machinekey, etc.  I've checked multiple times, but I can't see any differences in the dataprovider section of web.config.

The fact that this happens going from 4.5.5 to 4.6.0, but didn't happen on other upgrades getting to 4.5.5 indicates that the is some change that I'm not catching. 

Does anyone remember a change at the 4.6 line?

 

I did see a note about a similar error reported in Mitchel Sellers' blog.  That problem appeared to be with a database prefix, but I haven't been using one ...




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
4/27/2008 3:41 PM
 

Hi Joe,

You're analysis seems correct.  If you look at the inner exception you're receiving, DNN's Framework.Reflection.CreateObject is trying to create an object of type null, and thus the throw.  This pretty much excludes an assembly / file problem (I would expect to see a "type not found" or "assembly not found" in that circumstance).

So you'll need to figure out why DotNetNuke is asking .NET to create an object of type null.  The most obvious place here is exactly where you suspected, in your web.config.  I looked at my archived 4.5 web.config and do not see any schema changes in the DataProvider section between it and a 4.8.1 version.  I have skipped 4.6, so I can't state with authority that nothing changed, but it seems unlikely that something would change here and then change BACK by 4.8.

Maybe try posting your DataProvider section.  Also, if you have access to a debugger on your DNN machine, this would probably be a time to fire it up.  You're looking to break in DotNetNuke.Framework.Reflection.CreateObject when objProviderType = "Data".  A quick look at the data provided to this method would probably immediately make it clear where the problem is.  The provider pattern is pretty fragile when it comes to small, difficult-to-notice configuration issues, so it's very likely that we're looking at something small here.

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
4/27/2008 7:59 PM
 

AFAIR for DNN 4.6.x you need to make sure, that the connection strings in web.config do not contain trailing ; semicolon.

Besides you do not need to perform each individual upgrade, from 4.5.x simply install 4.8.2 and call the site.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Trouble upgrading from 4.0.2 to 4.6.2Trouble upgrading from 4.0.2 to 4.6.2


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