Website hosted on IIS contains multiple AssemblyFileVersionAttribute, what causes an error when calling FrameworkDescription property

Alexey Gr 6 Reputation points
2023-05-16T14:48:41.8066667+00:00

If host a site (asp net framework 4.8) on IIS (win server 2019), then System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription property call - throws an exception:

AmbiguousMatchException: Multiple custom attributes of the same type found.

If you try to get the attribute manually, then you can see that there are really two of them
FrameworkDescription

AssemblyFileVersionAttribute

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,471 questions
Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,271 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Alexey Gr 6 Reputation points
    2023-07-06T10:00:16.48+00:00

    I found a solution! It's all SCOM fault. On one of the servers, removing its components helped me. On the other, the installation of Update Rollup 10 helped.

    User's image

    0 comments No comments