Upgrade from 7 to 7.5

Vote:
 

Server Error in '/' Application.An item with the same key has already been added.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.ArgumentException: An item with the same key has already been added.

Source Error: 

[No relevant source lines]


Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\03edd14e\d6059b33\App_global.asax.0.cs    Line: 0 

Stack Trace: 

[ArgumentException: An item with the same key has already been added.]
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +14648971
   System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) +267
   EPiServer.PlugIn.PlugInLocator.get_Assemblies() +792
   EPiServer.PlugIn.PlugInLocator.Search(PlugInAttribute matchAttribute) +75
   EPiServer.DynamicContent.DynamicContentPlugInAttribute.Start() +79

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +229
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +193
   EPiServer.PlugIn.PlugInRuntime.Call(TypesWithState typeWithState, String methodName) +225
   EPiServer.PlugIn.PlugInRuntime.Call(String methodName) +560
   EPiServer.PlugIn.PlugInRuntime.Start(Boolean reset) +247
   EPiServer.Initialization.PlugInInitialization.Initialize(InitializationEngine context) +32
   EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +64
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +719
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +168
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +285
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +104
   EPiServer.Global..ctor() +110
   EPiServer.Templates.Global..ctor() +40
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\03edd14e\d6059b33\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) +159
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +127
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14259449
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +200
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +83
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +312
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949
#88413
Jul 11, 2014 15:58
Vote:
 

Have you tried IIS Reset and Removed temporary Internet Files.

Can you please check all EPiServer DLLs are in your bin folder and not referencing from GAC.

Regards

/K

#88416
Jul 11, 2014 16:28
Vote:
 

We got the same error once when we renamed a page type (class name) and got the guid mixed up.

What have you done before this happen,can you tell me every step in the upgrade face you have done?

#88427
Jul 11, 2014 20:47
Vote:
 

Thanks for your reply Khan & Henrik.

@Khan - Yes did that but still have the same issue.

@Henrik - I upgrade the site with database

Upgraded the system addons

Install nuget packages for episerver

Rebuild the project and fix those errors

Add the probing path to web.config

Update-epidatabase

Removed uiversionmerging and some other attributes in episerver.config because it's say unrecognized attribute

Then I got this error

Please help me to overcome this issue and its very urgent delivery to one of customer and thanks in advance.

#88432
Jul 12, 2014 23:39
Vote:
 

It seems like you have not done any changes that would create that error the same way that I had.

this error is very hard to solve since it happens in the part where EPiServer creates or updates the things in the database.

I would create a support case and send the database and project to EPiServer to get some help.

what you could try before is:

1: start SQL-profiler and see what happens in the database. The problem is that EPiServer get back more than one record where it thinks only one should be returned.

2: change to debug in the log file and see if you can see something there.

good luck!

#88433
Jul 13, 2014 9:52
Vote:
 

Could it be something with a problem between missmatching index for search and db? I have had a similiar error when using lucene index. Updating index solved my error. 

Have you run the disable/upgrade addons script from deployment center?

#88434
Jul 13, 2014 11:40
Vote:
 

Yes I run the disable/upgrade add ons script from deployment center.

#88435
Jul 13, 2014 11:43
Vote:
 

Server Error in '/' Application. Could not load file or assembly 'EPiServer, Version=5.2.375.133, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 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.IO.FileLoadException: Could not load file or assembly 'EPiServer, Version=5.2.375.133, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

[No relevant source lines]


Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5d63dc1d\9a7e7873\App_global.asax.0.cs    Line: 0

Assembly Load Trace: The following information can be helpful to determine why the assembly 'EPiServer, Version=5.2.375.133, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Stack Trace:

[FileLoadException: Could not load file or assembly 'EPiServer, Version=5.2.375.133, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   EPiServer.Framework.Initialization.InitializationEngine.SetupAssemblyTypeScanner() +1441
   EPiServer.Framework.Initialization.InitializationEngine.ScanAssemblies() +18
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +262
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +104
   EPiServer.Global..ctor() +110
   EPiServer.Templates.Global..ctor() +40
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\5d63dc1d\9a7e7873\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) +159
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +127
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14259449
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +200
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +83
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +312
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

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


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446              

#88475
Jul 15, 2014 9:04
Vote:
 

Assembly Refference in web.config and in bin amnd dll version in Bin are different.

#88477
Jul 15, 2014 9:09
Vote:
 

Have you updated all bindingredirects in web.config and also verify all references are correct in your project.

#88490
Jul 15, 2014 11:28
* 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.