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.
Website hosted on IIS contains multiple AssemblyFileVersionAttribute, what causes an error when calling FrameworkDescription property
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
3 answers
Sort by: Most helpful
-
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
-
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
-