Upgrade error from CMS 7 to CMS 7.5 - Value cannot be null. Parameter name: type

Vote:
 

Hi Guys,

I've upgraded a CMS 7 site to CMS 7.5 via deployment center, I've added nuget packages and fixed build errors.

I'm getting the following exception when I start my 7.5 upgraded site (7.5.394.2). I've seen similar posts but nothing I've tried that was suggested in those posts has helped to resolve my issue. For example I've double checked DLL versions in bin and binding redirects within web.config

Any idea where else I can investigate?

Thanks
Mark

[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic) +14304468
System.Activator.CreateInstance(Type type) +12
EPiServer.Framework.FrameworkInitialization.InitializeVirtualRoles() +580
EPiServer.Framework.FrameworkInitialization.Initialize(InitializationEngine context) +111
EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +56
EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +645
EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +161
EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +394
EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +92
EPiServer.Global..ctor() +102
FusionRetailBrands.Episerver.CMS.Global..ctor() +43
ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\36ff10a8\a72bdb84\App_global.asax.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +138
System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1528
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +191
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +82
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +300
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712



#145936
Mar 16, 2016 3:00
Vote:
 

A long shot is to check if you have the correct virtual roles node in Web.config. Should look similar to

<virtualRoles addClaims="true">
<providers>
<add name="Administrators" type="EPiServer.Security.WindowsAdministratorsRole, EPiServer.Framework" />
<add name="Everyone" type="EPiServer.Security.EveryoneRole, EPiServer.Framework" />
<add name="Authenticated" type="EPiServer.Security.AuthenticatedRole, EPiServer.Framework" />
<add name="Anonymous" type="EPiServer.Security.AnonymousRole, EPiServer.Framework" />
<add name="CmsAdmins" type="EPiServer.Security.MappedRole, EPiServer.Framework" roles="WebAdmins, Administrators" mode="Any" />
<add name="CmsEditors" type="EPiServer.Security.MappedRole, EPiServer.Framework" roles="WebEditors" mode="Any" />
<add name="GoogleAnalyticsAdministrators" type="EPiServer.Security.MappedRole, EPiServer.Framework" roles="Administrators" mode="Any" />
<add name="Creator" type="EPiServer.Security.CreatorRole, EPiServer" />
<add name="PackagingAdmins" type="EPiServer.Security.MappedRole, EPiServer.Framework" roles="WebAdmins, Administrators" mode="Any" />
</providers>
</virtualRoles>

Check alloy demo site for exact syntax. If that doesn't do it, try running the site with fresh Web.config from demo site and see if that helps. Empty temp files for asp.net is always worth trying of you get weird exceptions too :)

My first guess would be config issue related to virtual roles though...

#145941
Edited, Mar 16, 2016 7:35
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.