LNG LogoLNG Logo
    • Enterprise App Development
    • Product Architecture Design
    • Data Engineering & Analytics
    • Cloud Consulting Services
    • AI-Enabled Applications
    • Remote Engineering Teams
    • UI/UX Design
    • Data Migration
    • Big Data
    • DevOps Solutions
    • Banking
    • Ecommerce
    • Fintech
    • Healthcare
    • Hospitality
    • Manufacturing
    • Telecom
    • Travel
    • Education
    • Cross-Platform & Web Development
    • Digital Experience Platform
    • Enterprise Technologies
    • Modern Frontend Interface
    • About Us
    • Blog
    • Our Team
    • Careers
    • Success Stories
Let's Talk !

Multiple custom attributes of the same type found - L&G Consultancy

By: Koushik MukherjeeAugust 17, 2022

Problem:

When trying to identify the anonymous contact, Sitecore throws exception and unable to identify the contact. Tracking is enabled and xconnect is working fine. Below is the inner exception I am getting-

InnerException”: {
“Message”: “An error has occurred.”,
“ExceptionMessage”: “Multiple custom attributes of the same type found.”,
“ExceptionType”: “System.Reflection.AmbiguousMatchException”,
“StackTrace”: ” at System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit)\r\n at System.Runtime.InteropServices.RuntimeInformation.get_FrameworkDescription()\r\n at Sitecore.Xdb.Collection.Data.SqlServer.Managers.ChangeTracking.SyncToken.AllowedTypesValidatorSerializationBinder..cctor()”
}

Solution:

I raised this issue to Sitecore support. As per them this issue is because the logic under the  ‘Sitecore.Xdb.Collection…..AllowedTypesValidatorSerializationBinder‘ and it will get the  FrameworkDescription from the RuntimeInformation , Sitecore has the following code lines:

from the System.Runtime.InteropServices.RuntimeInformation:

    get
    {
        if (s_frameworkDescription == null)
        {
            AssemblyFileVersionAttribute assemblyFileVersionAttribute = (AssemblyFileVersionAttribute)typeof(object).GetTypeInfo().Assembly.GetCustomAttribute(typeof(AssemblyFileVersionAttribute));
            s_frameworkDescription = string.Format(“{0} {1}”, “.NET Core”, assemblyFileVersionAttribute.Version);
        }
        return s_frameworkDescription;
    }

 This code is implemented by Microsoft and used to get the running .net core, .net Framework version, from here it will try to get the custom attributes where eventually it will face the error of ‘Multiple custom attributes of the same type found‘ , the issue happens since the mscorlib assembly has more than one AssemblyFileVersionAttribute attribute.

From the Internet articles, I can see that the issue happens when some monitoring software is in place and injects extra information into the assembly

So I checked if the below dll is present in the following path :

C:\Program Files\Microsoft Monitoring Agent\Agent\APMDOTNETAgent\V8.0.13053.0\StubProfiler64.dll

Please note that the version might be different and may not be necessarily ‘V8.0.13053.0‘.

I found the dll there and I disabled the dll and that fixed the issue.

Two CMSs, One Website: Managing Routing During WordPress to Sitecore MigrationJune 17, 2026Mastering Identity Resolution in Sitecore CDP: Anonymous to Known VisitorsMay 25, 2026

Let's Innovate, Collaborate, Build Your Product Together!

We turn your unique ideas into exceptional results. Contact us to
scale your tech capacity and accelerate business growth.

Let's Talk!
Where We Are

Our Global Presence

Delivering world-class digital solutions from three strategic locations across the globe.

South AfricaSouth Africa
ZACape Town

4th Floor, Mutual Park, Pinelands, Capetown, South Africa - 7405.

UAEUAE
AEDubai

FZCO 421, Dubai Commercity, Dubai, United Arab Emirates.

IndiaIndia
INAmritsar

SCO 6, Floor - 5, Dua Square, Ranjit Avenue, Block - B, Amritsar, Punjab, India - 143002

Logo

AI-Fuelled software agency, helping business professionals to thrive. Trusted by global leaders.

Company

  • About Us
  • Blog
  • Our Term
  • Careers
  • Success Stories

Services

  • AI-Enabled Applications
  • Big Data
  • Cloud Consulting Services
  • Data Engineering & Analytics
  • Data Migration
  • DevOps Solutions
  • Enterprise Application Development
  • Product Architecture Design
  • Remote Engineering Teams
  • UI/UX Design

Industries

  • Banking
  • Ecommerce
  • Fintech
  • Healthcare
  • Hospitality
  • Manufacturing
  • Telecom
  • Travel & Transport
  • Education

Technologies

  • Cross-Platform and Web Development
  • Digital Experience Platform
  • Enterprise Technologies
  • Modern Frontend Interface
Logo

AI-Fuelled software agency, helping business professionals to thrive. Trusted by global leaders.

Company
  • About Us
  • Blog
  • Our Term
  • Careers
  • Success Stories
Services
  • AI-Enabled Applications
  • Big Data
  • Cloud Consulting Services
  • Data Engineering & Analytics
  • Data Migration
  • DevOps Solutions
  • Enterprise Application Development
  • Product Architecture Design
  • Remote Engineering Teams
  • UI/UX Design
Industries
  • Banking
  • Ecommerce
  • Fintech
  • Healthcare
  • Hospitality
  • Manufacturing
  • Telecom
  • Travel & Transport
  • Education
Technologies
  • Cross-Platform and Web Development
  • Digital Experience Platform
  • Enterprise Technologies
  • Modern Frontend Interface

Copyright © 2026 L&G Consultancy. All Rights Reserved.
Privacy PolicyTerms and Conditions
Company Image