Try our conversational search powered by Generative AI!

Upgrade error from 6R2 to 7( Multiple custom attributes of the same type found)

Vote:
 

Server Error in '/' Application.Multiple custom attributes of the same type found.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.Reflection.AmbiguousMatchException: Multiple custom attributes of the same type found.

Source Error: 

[No relevant source lines]


Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\0a09daa4\2d581c07\App_global.asax.0.cs    Line: 0 

Stack Trace: 

[AmbiguousMatchException: Multiple custom attributes of the same type found.]
   System.Attribute.GetCustomAttribute(MemberInfo element, Type attributeType, Boolean inherit) +14213326
   EPiServer.PlugIn.PlugInLocator.FindPlugInTypes(AssemblyTypeInfo assemblyType, Type pluginType) +182
   EPiServer.PlugIn.PlugInLocator.FindPlugInTypes(Type pluginType) +181
   Itera.SiteSettings.GlobalSiteSettings.Start() +316

[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
   System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +2924
   EPiServer.PlugIn.PlugInRuntime.Start(Boolean reset) +565
   EPiServer.Initialization.PlugInInitialization.Initialize(InitializationEngine context) +11
   EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +64
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +751
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +168
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +308
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +93
   EPiServer.Global..ctor() +102
   EPiServer.Templates.Global..ctor() +40
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\0a09daa4\2d581c07\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
#87527
Jun 16, 2014 15:29
Vote:
 

Sounds like some obsolete attribute in a different namespace or assembly is the issue or you have a legacy dll in there and it should be removed.  try clearing you asp.net cache / temp files

#87536
Jun 16, 2014 22:48
Vote:
 

Thanks for your reply. these are the dll in my project http://imgur.com/eb5PAjA

#87554
Jun 17, 2014 9:44
Vote:
 

My best guess is that you have some 3rd party modules like EPiImage, PageTypeBuilder that you have multiple dlls for (both for EPiServer 6 and 7). Check through your bin folder and make sure that you only have one dll per 3rd party module...

#87560
Jun 17, 2014 10:25
Vote:
 

you are looking for a module that is visible somewhere in edit/admin mode...like epi image...

#87561
Jun 17, 2014 10:26
Vote:
 

If you can't locate the faulting 3rd party module...start trying to removing them one by one from solution until it works...

#87563
Jun 17, 2014 10:28
Vote:
 

Thanks. I give a try on that and get back to you.

#87566
Jun 17, 2014 11:33
Vote:
 
[InvalidOperationException: Cannot resolve dependencies for the following module(s) 
EPiServer.Blog.EventHandlers
EPiServer.Cms.Shell.UI.ObjectEditing.InternalMetadata.ExpireBlockInitialization
EPiServer.Cms.Shell.UI.ObjectEditing.InternalMetadata.ShortcutBlockInitialization
EPiServer.Initialization.CmsDataInitialization
EPiServer.Initialization.ParentRestoreInitialization
EPiServer.Initialization.VirtualPathProvidersInitialization
EPiServer.Initialization.XFormsInitialization
EPiServer.Shell.UI.InitializationModule
EPiServer.Cms.Shell.InitializableModule
EPiServer.Events.EventsInitialization
EPiServer.Initialization.CmsCoreInitialization
EPiServer.Initialization.SaveConfigToDatabaseInitialization
EPiServer.Initialization.SearchInitialization
EPiServer.Packaging.PackagingInitialization
EPiServer.Personalization.VisitorGroups.VisitorGroupInitialization
EPiServer.Initialization.PlugInInitialization
EPiServer.Initialization.ModelSyncInitialization
EPiServer.Initialization.UrlRewriteProviderInitialization
EPiServer.Web.InitializationModule]
   EPiServer.Framework.Initialization.InitializationEngine.CreateDependencySortedModules(IEnumerable`1 modules) +460
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +121
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +308
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +93
   EPiServer.Global..ctor() +102
   EPiServer.Templates.Global..ctor() +40
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\0a09daa4\2d581c07\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

#87584
Jun 17, 2014 14:31
Vote:
 

That looks like a missing dll in bin folder or wrong dll in bin folder. I would suggest installing an alloy demo site and compare file by file that you have all dlls of the correct version. Also check assembly redirects in web.config that it really redirects to the correct version...

#87589
Jun 17, 2014 15:41
Vote:
 

Thanks for your reply.I have upgraded to 7 when upgrading to 7.5 in the step Install EPiServer.CMS.Core i am getting error saying that Install failed. Rolling back
Failed to add reference to System.core. Please make sure that it is the GAC. Any idea how could i resolve this.

#87629
Jun 18, 2014 13:26
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.