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 ...Possible solution to dotnetnuke.data.dataprovider error upgrading to 4.7Possible solution to dotnetnuke.data.dataprovider error upgrading to 4.7
Previous
 
Next
New Post
11/9/2007 3:31 PM
 

I have an install of DNN that has gone through many upgrades.  However when I tried to upgrade to 4.7 I got an error:

[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.Data.DataProvider.CreateProvider() +47
   DotNetNuke.Data.DataProvider..cctor() +13

[TypeInitializationException: The type initializer for 'DotNetNuke.Data.DataProvider' threw an exception.]
   DotNetNuke.Entities.Portals.PortalAliasController.GetPortalAliasByPortalID(Int32 PortalID) +38
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalAliasLookup() +74
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalAliasInfo(String PortalAlias) +14
   DotNetNuke.HttpModules.UrlRewriteModule.RewriteUrl(HttpApplication app) +3527
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +826
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

So, I spent the next 4 hours troubleshooting this.

After reading posts of people with similar problems I figured the problem was from the upgrade of past versions and leftover dll's in the \bin directory.  I renamed the bin directory and then copied over the \bin directory from the 4.7 install.  I then added ONE dll at a time until I found the one that crashed the site with the above error.

I removed DotNetNuke.Provider.Membership.SqlDataProvider.dll and the site now works.

I hope this helps someone.

 
New Post
11/15/2007 12:33 AM
 

Followed your suggestion and now my site shows up, thank you, but now I can't login... any suggestions?

 
New Post
11/15/2007 12:19 PM
 

Can anyone login?  Or is it just host?

 
New Post
11/23/2007 9:39 PM
 

I have the same issue - Neither the host or admin are able to log in - on the site I have those are the only two registered. I can register a new user and log in but that's of little use. Neither can it find either host or admin to email the password. Somehow I'm thinking it is not reading the encription right in the database or something. Site is up but unchangeable.

John

 
New Post
11/26/2007 6:43 PM
 

Found out the hard way this is what happens when the machineKey is not copied and pasted from the old web.config to the new. I worked with a gal and guy that do subcontracting for me in China. He wrote a script and went into my database getting me back up and running. Whew! You may need to pay him a few bucks for his time via PayPal - I sent him $50 - and it was a bargain for me at that plus learning the error of my ways.

John Clark

WowWebWorks.com

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Possible solution to dotnetnuke.data.dataprovider error upgrading to 4.7Possible solution to dotnetnuke.data.dataprovider error upgrading to 4.7


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