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 ...4.8 Upgrade Failed with Value cannot be null. Parameter name: type 4.8 Upgrade Failed with Value cannot be null. Parameter name: type
Previous
 
Next
New Post
12/29/2007 10:13 AM
 

My 4.8 upgrade failed with the following error message.   I now can't get access to my site.   Any suggestions?

 

Server Error in '/' 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:

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) +82
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3306
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 
New Post
12/29/2007 12:32 PM
 

You can find your answer here probably, I'm planning to upgrade later (After I wake up 1st)...1:25am now) as 4.7 really got a lot of bugs and error...many of the scripts are not written properly...making me feel that 4.7 actually slower and unstable  than 4.5.2 zzz

One more thing that I hate is the useless portal.css. It has nothing to but a bunch of rubbish extra css codes that I can actually do put all needed one in default.css.

I think many of the scripts intention is for new users, and breaking up the developement burden...but...came out which at least 60,000 bytes of javascripts...oh man, I hate that running on 1mbps connection...

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/-1/threadid/192812/scope/posts/Default.aspx

The problem mostly because of active directory...yucks...need some work to do again.


Thanks,
George

Where to eat? Visit GoEatOut for Food Promotion in Kuala Lumpur.
 
New Post
12/29/2007 10:21 PM
 

Robert,

I hit the exact same error upgrading a live (shared hosting) DNN 4.6.2 site to DNN 4.8.0 (install version)  this afternoon - my first upgrade or install failure since starting with DNN 3 years ago - even after having successfully upgraded several test installs to 4.8.0.  When first hitting Install.aspx following uploading the new version's files, the upgrade seemed to proceed properly through running the sql scripts for 4.7.0 and 4.8.0 then abruptly stopped with an Application Error. Note that the Application Errors that we received relating to a type initializer exception due to a null value in the parameter 'type' are quite different than the one that the other poster mentioned involving problems with the Active Directory provider. My site which failed to upgrade does not use AD.

Although I could have rolled the site back thanks to complete backup of files and database I decided to try to check/try a few remedies first. After finding no problems with the modifications I had made to the new 4.8.0 web.config file and verifying that all of the new files had been properly uploaded via FTP and noting that the database had indeed been updated to 4.8.0 (as seen in the DNN Version table entry, I noticed that there were 16 dll files from prior versions still residing in the \bin folder.  With the 4.7 upgrade, there was a major shift in the way in which the HttpModules and Providers were compiled, no longer requiring separate dll's for each HttpModule nor for each provider.  I then deleted the following files from the \bin folder of the live site:

DotNetNuke.Authentication.ADSI.dll
DotNetNuke.Authentication.ADSIProvider.dll
DotNetNuke.DNNScheduler.SqlDataProvider.dll
DotNetNuke.HttpModules.Authentication.dll
DotNetNuke.HttpModules.Compression.dll
DotNetNuke.HttpModules.DNNMembership.dll
DotNetNuke.HttpModules.Exception.dll
DotNetNuke.HttpModules.Personalization.dll
DotNetNuke.HttpModules.UrlRewrite.dll
DotNetNuke.HttpModules.UsersOnline.dll
DotNetNuke.Provider.DBLoggingProvider.SqlDataProvider.dll
DotNetNuke.Provider.Membership.SqlDataProvider.dll
DotNetNuke.Provider.SQLMembershipProvider.dll
DotNetNuke.Provider.SQLProfileProvider.dll
DotNetNuke.Provider.SQLRoleProvider.dll

After restarting the site in my hosting provider's control panel, the site reappeared with no apparent errors when I revisited it.

I can think of two reasons for the failure with the first being the most likely at the root of the problem:

1. When I unzipped the 4.8.0 Install I did so into the same folder which I had used for several prior installs, with the result that the now obsolete dll files were still located in the \bin folder at the time they were FTP'd up to the live site. I don't know if some or all of these obsolete files had been automatically removed (thanks to the presence of the 04.06.00.txt file in the \Portals\_default folder) when I had updated the site from 4.5.5 to 4.6.2 a while back and I simply restored them at the time or this upgrade or if they were already there.

2. The live site had gone down due to server problems a couple of times in the hour preceeding the start of this upgrade. Perhaps it went down during this upgrade resulting in failure of the upgrade process to complete including the automatic removal of the obsolete dll's prior to restarting the site.

At any rate, I learned one good lesson that had apparently not cought up with me in many prior upgrades of this and other sites - DO NOT unzip a new version's install into a folder used previously to upload files to the host server. Use a clean folder or at least delete all files from the \bin folder first!  Hope this helps you and others with the same problem!


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/6/2008 12:01 PM
 
My new release.config file has the following settings:
      <system.webServer>
            <modules>
                  <addname="ScriptModule"type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"preCondition="managedHandler" />
                  <addname="Compression"type="DotNetNuke.HttpModules.Compression.CompressionModule, DotNetNuke.HttpModules"preCondition="managedHandler" />
                  <addname="RequestFilter"type="DotNetNuke.HttpModules.RequestFilter.RequestFilterModule, DotNetNuke.HttpModules"preCondition="managedHandler" />
                  <addname="UrlRewrite"type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules"preCondition="managedHandler" />
                  <addname="Exception"type="DotNetNuke.HttpModules.Exceptions.ExceptionModule, DotNetNuke.HttpModules"preCondition="managedHandler" />
                  <addname="UsersOnline"type="DotNetNuke.HttpModules.UsersOnline.UsersOnlineModule, DotNetNuke.HttpModules"preCondition="managedHandler" />
                  <addname="DNNMembership"type="DotNetNuke.HttpModules.Membership.MembershipModule, DotNetNuke.HttpModules"preCondition="managedHandler" />
                  <addname="Personalization"type="DotNetNuke.HttpModules.Personalization.PersonalizationModule, DotNetNuke.HttpModules"preCondition="managedHandler" />
            </modules>
            <handlers>
                  <addname="AJAX_ScriptResourceHandler"path="ScriptResource.axd"verb="GET,HEAD"type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"preCondition="integratedMode,runtimeVersionv2.0" />
                  <addname="AJAX_AppServiceHandler"path="*_AppService.axd"verb="*"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"preCondition="integratedMode,runtimeVersionv2.0" />
                  <addname="AJAX_WebServiceHandler"path="*.asmx"verb="*"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"preCondition="integratedMode,runtimeVersionv2.0" />
                  <addname="LogoffHandler*"path="Logoff.aspx"verb="*"type="DotNetNuke.Services.Authentication.LogOffHandler, DotNetNuke"preCondition="integratedMode,runtimeVersionv2.0" />
                  <addname="RSSJandler"path="RSS.aspx"verb="*"type="DotNetNuke.Services.Syndication.RssHandler, DotNetNuke"preCondition="integratedMode,runtimeVersionv2.0" />
                  <addname="LinkClickHandler"path="LinkClick.aspx"verb="*"type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke"preCondition="integratedMode,runtimeVersionv2.0" />
                  <addname="CaptchaHandler"path="*.captcha.aspx"verb="*"type="DotNetNuke.UI.WebControls.CaptchaHandler, DotNetNuke"preCondition="integratedMode,runtimeVersionv2.0" />
            </handlers>
            <validationvalidateIntegratedModeConfiguration="false" />
      </system.webServer>
 
In  my old web.config the settings were as follows:
    <httpModules>
      <!-- add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" / -->
                  <addname="Compression"type="DotNetNuke.HttpModules.Compression.CompressionModule, DotNetNuke.HttpModules" />
                  <addname="RequestFilter"type="DotNetNuke.HttpModules.RequestFilter.RequestFilterModule, DotNetNuke.HttpModules" />
                  <addname="UrlRewrite"type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules" />
                  <addname="Exception"type="DotNetNuke.HttpModules.Exceptions.ExceptionModule, DotNetNuke.HttpModules" />
                  <addname="UsersOnline"type="DotNetNuke.HttpModules.UsersOnline.UsersOnlineModule, DotNetNuke.HttpModules" />
                  <addname="DNNMembership"type="DotNetNuke.HttpModules.Membership.MembershipModule, DotNetNuke.HttpModules" />
                  <addname="Personalization"type="DotNetNuke.HttpModules.Personalization.PersonalizationModule, DotNetNuke.HttpModules" />
                  <addname="ScriptModule"type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            </httpModules>
 
 
So my question is do I simply replace the old settings (<httpModules>) with the new settings <system.webServer>?
 

Blue & White hooped blood runs through my veins!
 
New Post
3/12/2008 7:27 AM
 

** POP **

Can anyone please tell me how I should declare the modules above in my web.config file for DNN v4.8.1.

Do I use the <system.webServer> declarations or the <httpModules> definition or both?


Blue & White hooped blood runs through my veins!
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...4.8 Upgrade Failed with Value cannot be null. Parameter name: type 4.8 Upgrade Failed with Value cannot be null. Parameter name: type


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