@@Nelson Hernandez I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
Issue: Facing an issue with a recent version of a software package, receiving an error related to "System.Diagnostics.DiagnosticSource, Version=6.0.0.0." Despite attempting to resolve it by downgrading the NuGet package to version 6.0.0.0, a new error arises, mentioning "System.Diagnostics.DiagnosticSource, Version=4.0.4.0." Trying to switch to this version results in compatibility issues with other packages, specifically "Azure.Core" and "Azure.Storage.Blobs." The user has provided configuration details from web.config and app.config, showing an attempt to redirect from version 0.0.0.0-6.0.0.1 to version 6.0.0.1. The issue persists, and the error log indicates a failure in setting up the assembly.
Solution: The problem was with the recognition of <dependentAssembly>
tags in the web.config, causing the new DLL to malfunction. This was attributed to the presence of namespace attributes within the <configuration>
tag, leading to the oversight of the <assemblyBinding>
tag. The issue was resolved by removing these attributes, ensuring that the assembly classes were recognized correctly and enabling proper redirection to the correct DLLs.
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.